究竟本来 发表于 2017-3-4 22:21:18

请教 st cc3200的smartconfig问题

按照如下调用方式,发现smartconfig 无法成功,有没有做过的人指点一下,看看我下面代码哪里出了问题?
    long lRetVal = -1;
    //
    // Clear all profiles
    // This is of course not a must, it is used in this example to make sure
    // we will connect to the new profile added by SmartConfig
    //
    lRetVal = sl_WlanProfileDel(WLAN_DEL_ALL_PROFILES);
    ASSERT_ON_ERROR(lRetVal);
    //set AUTO policy
    lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION,
                              SL_CONNECTION_POLICY(1,0,0,0,1),
                              NULL,
                              0 /*PolicyValLen*/);
    ASSERT_ON_ERROR(lRetVal);
   sl_WlanProfileDel(0xFF);
    //
    // Start SmartConfig
    // This example uses the unsecured SmartConfig method
    //
    lRetVal = sl_WlanSmartConfigStart(0,                /*groupIdBitmask*/
                           SMART_CONFIG_CIPHER_NONE,    /*cipher*/
                           0,                           /*publicKeyLen*/
                           0,                           /*group1KeyLen*/
                           0,                           /*group2KeyLen */
                           NULL,                        /*publicKey */
                           NULL,                        /*group1Key */
                           NULL);                     /*group2Key*/
    ASSERT_ON_ERROR(lRetVal);      
   

yCat 发表于 2017-3-9 22:39:53

在程序设计的时候最好是可以通过log体现出来,你就写这段程序出来是没有意义的,关键是你那个驱动函数有没有执行~

究竟本来 发表于 2017-3-10 18:31:22

yCat 发表于 2017-3-9 22:39
在程序设计的时候最好是可以通过log体现出来,你就写这段程序出来是没有意义的,关键是你那个驱动函数有没 ...
多想你的解答
驱动函数是指的哪个函数啊?涉及到smartconfig 的函数 底层的驱动接口我们看不到吧!?

页: [1]
查看完整版本: 请教 st cc3200的smartconfig问题