SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The SimpleLink HTTP server recognizes dedicated resource names and treats them as APIs. A POST request to these names executes the API without any involvement from the host application. All HTTP API requests must have the encoding of application/x-www-form-urlencoded. Most APIs require one or more parameters. These parameters are passed as part of the message body and have a rigid structure. They begin with the prefix “__SL_P_”, followed by three characters for the parameter ID, followed by an equal sign, and then by the parameter value (such as __SL_P_T.A=192.168.10.10).
Several parameters can be chained together with the ampersand operator (such as __SL_P_T.A =192.168.10.10 & __SL_P_T.B =64). Blank spaces that are not part of the parameter value are not allowed. All parameters relevant to an API should be provided in the body of the same request. However, if a parameter was omitted, its previously known value is used. This feature is enabled by default (see Section 10.3 for details).