Go to the source code of this file.
◆ remote_api_csap_cancel()
| void remote_api_csap_cancel |
( |
void |
| ) |
|
Function for handling the Remote API CSAP attribute cancel request on application side. Clear any stored attributes from the temporary location which were stored there in write requests. See, more details on the purpose and use of the cancel function in the Remote API reference manual.
◆ remote_api_csap_read()
Function for handling the Remote API CSAP attribute read requests on the application side. Reads the CSAP attribute values and builds the response. See, more details on the use of the write function in the Remote API reference manual.
- Parameters
-
| attr_id | Attribute ID value that is read. Remote API is expected to call this function only with an attribute ID between 0xC001 - 0xFFFF. |
| data | The payload content of the CSAP attribute read request as well as reference to buffers where the response is written. |
- Returns
- Returns REMOTE_API_CSAP_RESPONSE_NONE is read was succesful and response was generated successfully, otherwise an error code is returned.
◆ remote_api_csap_update()
Function for handling the Remote API CSAP attribute update request on application side. Stores the CSAP attribute values of the preceding write requests to a persistent location (from the temporary location). See, more details on the purpose and use of the update function in the Remote API reference manual.
- Returns
- Return APP_LIB_SETTINGS_REMOTE_API_RES_OK if update was ok, APP_LIB_SETTINGS_REMOTE_API_RES_OK_RESET if update was ok and reset is required, APP_LIB_SETTINGS_REMOTE_API_RES_NONE otherwise.
◆ remote_api_csap_write()
Function for handling the Remote API CSAP attribute write requests on the application side. Stores the CSAP attribute values to a temporary location and builds the response. See, more details on the use of the write function in the Remote API reference manual.
- Parameters
-
| attr_id | Attribute ID value that is written. Remote API is expected to call this function only with an attribute ID between 0xC001 - 0xFFFF. |
| flags | Includes additional information such as whether the write requestwas transported in a unicast packet. |
| data | The payload content of the CSAP attribute write request as well as reference to buffers where the response is written. |
- Returns
- Returns REMOTE_API_CSAP_RESPONSE_NONE is write was succesful and response was generated successfully, otherwise an error code is returned.