This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 scan

hi  , 请教个问题

        sl_WlanGetNetworkList(0,  10, &netEntries[ucIndex]);

      这个返回的扫描结果测试都在4以下,不是全部, 在哪儿可以配置了,请告诉,谢谢。

  • /*!
    \brief Gets the WLAN scan operation results

    Gets scan results , gets entry from scan result table

    \param[in] Index - Starting index identifier (range 0-19) for getting scan results
    \param[in] Count - How many entries to fetch. Max is (20-"Index").
    \param[out] pEntries - pointer to an allocated Sl_WlanNetworkEntry_t.
    the number of array items should match "Count"
    sec_type: SL_SCAN_SEC_TYPE_OPEN, SL_SCAN_SEC_TYPE_WEP, SL_SCAN_SEC_TYPE_WPA or SL_SCAN_SEC_TYPE_WPA2


    \return Number of valid networks list items

    \sa
    \note belongs to \ref ext_api
    \warning This command do not initiate any active scanning action
    \par Example:
    \code An example of fetching max 10 results:

    Sl_WlanNetworkEntry_t netEntries[10];
    _i16 resultsCount = sl_WlanGetNetworkList(0,10,&netEntries[0]);
    for(i=0; i< resultsCount; i++)
    {
    printf("%s\n",netEntries[i].ssid);
    }
    \endcode
    */

    根据这个说明是没啥毛病,另外一个你是不是设置什么通道了?我知道一共有1到13 个通道,不过默认是都扫描的。。是不是强信号就4个其他都是弱信号

  • 已经解决了,加长delay时间即可。

  • 是的,这个函数需要NWP网络处理器获取数据后才能正常的读取到扫描信息,谢谢反馈。