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 How to change MAX_TOKEN_VALUE_LEN

Other Parts Discussed in Thread: CC3200

I would like to MAX_TOKEN_VALUE_LEN.

This is de message that it's write near to the define, but I don't know exactly what I have to do, because I have change the value, but it doesn't work correctly.

/* Important: in case the max len is changed, make sure the struct sl_NetAppHttpServerSendToken_t in protocol.h is padded correctly! */

I have debugged the application, and the  variables, never take the real values that I have selected.

Can anyone help me? Does exist some technical support for this kinds of questions? I have read de forum, but no one answer this question.

Thank you very much.

  • Hi,

    Sorry, I don't understand correctly. Do you need send longer token response than 64 (in real 63) bytes? 64 bytes is maximum value which is hardcoded in NWP (network processor) firmware and can't be changed. If you facing limitation in NWP webserver, you can consider use own webserver in application processor.

    Jan
  • Hi Jan,
    I mean, I'm using httpserver example. I have made an main.html. I connect to CC3200 ( that works like AP). At the begining, CC3200 scan the WLANs and then I would like to show these WLANs in this main.html sending an GET to CC3200. The problem is when cc3200 scan a lot of WLAN, the response is "unknown token", I suppose because there are more than 64 bytes in the packet and I don't know exactly if as you say I can modify MAX_TOKEN_VALUE_LEN, or the value that it has is the maximum value that I can configure. Could you explain me if it's posibble to do that I want to do or what could be the solution for may problem.
    Maybe I haven't selected the correct example to do that I want, but is the most similar to do that I want.
    I hope that you can understand me or if you need more information to try help me don't hesitate to ask me, please.
    Thank you very much for your help.
  • Hi,

    As I say at previous answer, maximum length of response to token is 64B (63B) and can't be prolonged. Even you change MAX_TOKEN_VALUE_LEN it will not help you. Limitation is inside NWP ("WiFi coprocessor") not at SimpleLink driver side.

    In your case you can easily use more tokens for response. Separate user token for each found network. Alternatively you can use webserver in application processor (see websock_camera example from SDK).

    Jan
  • Hi,
    Thank you very much for your help.