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.

WebSocket on Simplelink

Other Parts Discussed in Thread: CC3200

Hi,

Does anyone have an implementation of a websocket client that uses the simplelink API that they would be willing to share?

Mike

  • In the latest cc3200 sdk they added a websockets example - webcamera_websockets - something like that.

    Have you seen it?

  • Yes, I have... its a websocket server not client implementation.

  • Michael,

    We don't have a websocket-cleint example - However, we can help you w/ any specific questions that you might have.

    -Praneet 

  • We need a choice of comms protocol to talk to a server that is:

    - Firewall transparent (the customer shouldn't need to add firewall holes for this)
    - Works through proxies
    - Speedy response if needing to deliver something to the client
    - Still low power

    I guess HTTP polling might be easier, or do TI have a better recommendation - the client side power consumption is the most important thing in our situation.

  • Hi Praneet,

    Can you please let us know where the websocket server address can be defined in the code and how to change the websocket server address from http://mysimplelink.net/ to http://www.XXXYYYZZZ.com(for example).

    Thanks an Regards

    Abul Hasan

  • Hi Abul,

    Sorry for delayed response.

    You can change the device URN
    ====================================================================================
    Set Device URN name example:

    Device name, maximum length of 33 characters
    Device name affects URN name, own SSID name in AP mode, and WPS file "device name" in WPS I.E (STA-WPS / P2P)
    In case no device URN name set, the default name is "mysimplelink"
    Allowed characters in device name are: 'a - z' , 'A - Z' , '0-9' and '-'

    _u8 *my_device = "XXXYYYZZZ";
    sl_NetAppSet (SL_NET_APP_DEVICE_CONFIG_ID, NETAPP_SET_GET_DEV_CONF_OPT_DEVICE_URN, strlen(my_device), (_u8 *) my_device);
    ====================================================================================