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.

如何关闭MDNS功能



TI大神们,

  我想在CC3200LP不进行smartconfig时,手机APP搜索不到设备,即关闭MDNS广播功能,只有当需要配置时,才开启广播功能,如何做到呢?

  • \brief Stops a network application

    Gets and stops network application for the current WLAN mode

    \param[in] AppBitMap application id, could be one of the following: \n
    - SL_NET_APP_HTTP_SERVER_ID
    - SL_NET_APP_DHCP_SERVER_ID
    - SL_NET_APP_MDNS_ID

    \return On error, negative number is returned

    \sa
    \note This command disables the application for the current active WLAN mode (AP or STA)
    \warning
    \par Example:
    \code

    For example: Stopping internal HTTP server:
    sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);

    \endcode
    */
    #if _SL_INCLUDE_FUNC(sl_NetAppStop)
    _i16 sl_NetAppStop(const _u32 AppBitMap);

  •     您好,谢谢您的回答,只是关于这个封装函数的功能,我知道是可以关闭MDNS功能,但是它所关闭掉的是整个Socket通路,导致CC3200LP其他的网络服务功能难以实现,也并不能解决我所说的一键配置完成后关闭MDNS广播功能,而不对其他功能造成影响的初衷,所以我不打算用这个函数,不过还是谢谢您的回答,目前通过其他方式已经解决问题了。