SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
The user can define new tokens that are not known by the HTTP web server.
The token should follow the same rules as the predefined tokens:
If the HTTP web server scans the HTML file and finds a token that is not in the predefined list, the server generates a get_token_value asynchronous event with the token name, requesting the token value from the host.
The host should respond with a send_token_value command, with the token value. The HTTP web server will use this token value and return it to the client.
The maximum length of the token value is 64 bytes.
If the host is not responding to the get_token_value request, the server implements a time-out of two seconds. After the time-out, the Not Available string is used as the token value (and is eventually be displayed by the browser).
To prevent user tokens from colliding with the internal tokens, use tokens with the following structure: __SL_G_UXX, where XX can be any character or number.
Description of the host interface can be found in paragraph: Host / HTTP web server API.