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: Predefined HTTP Tokens Vs. User HTTP Tokens

Part Number: CC3200

I have read through the HTTP Server PDF and the HTTP Server code as well. I altered the internal website to contain a form submission for parameters to be saved (post) and for the current parameters to display (get).. I have defined user HTTP tokens in the C code as well as on the website, but is there any additional thing I am missing? They are defined in the correct form: __SL_G_UDR or __SL_P_UDR. My tokens on the website still show up as "Unknown Token" and my code is not pulling the tokens once the form is submitted. There is some kind of disconnect.

Do I need to predefine these tokens in another location in order for the HTTP webserver to match what's submitted on the form to the token?

Please advise!!

  • Hi Margaret,

    Where in your code are the tokens defined? They must be referenced in your handler. The best example I can think of is in the provisioninglib library where tokens are defined in provisioning_defs.h and used in the sl_Provisioning_HttpServerEventHdl handler (defined in simplelink.h).

    Best regards,
    Sarah
  • Thank you!! I went ahead and defined them in provisioning_defs.h and the website picked up the value and displayed it! :)