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.

CC3100: Passing MAC address to sl_wlanConnect causes a failure to connect to AP.

Part Number: CC3100


Given a MAC address stored as a uint8_t arr[6], I have found that calling sl_wlanConnect(SSID, pal_Strlen(SSID), (_u8*)arr, &SecParams, 0) fails while calling  sl_wlanConnect(SSID, pal_Strlen(SSID), 0, &SecParams, 0) succeeds.  I was wondering why the passing of the MAC address would cause a problem connecting to the network.

  • Hi John,

    Are you sure you are passing the correct MAC address of the AP you are trying to connect to? If you pass a MAC address that does not match the AP, the connection will fail. Assuming in your application you would not often have two APs with the same SSID that you need to differentiate, it would be easier to pass NULL instead of a MAC.

    Best regards,
    Sarah
  • That would be the problem.  The documentation only mentioned 6 bytes for the MAC address, so we were passing it the MAC address we wanted to use.  Thank you for the clarification.