Virgil IoT KIT
|
INFO for server. More...
Go to the source code of this file.
Typedefs | |
typedef vs_status_e(* | vs_snap_info_start_notif_srv_cb_t) (vs_snap_info_device_t *device) |
Startup notification. More... | |
Functions | |
const vs_snap_service_t * | vs_snap_info_server (vs_snap_info_start_notif_srv_cb_t startup_cb) |
INFO Server SNAP Service implementation. More... | |
vs_status_e | vs_snap_info_start_notification (const vs_netif_t *netif) |
INFO Server startup notification. More... | |
void | vs_snap_info_set_firmware_ver (vs_file_version_t ver) |
Set version of firmware to be sent. More... | |
void | vs_snap_info_set_tl_ver (vs_file_version_t ver) |
Set version of TrustList to be sent. More... | |
INFO for server.
INFO service is used to provide information about current device state in the local network. Network in this case is limited by SNAP transport protocol.
In INFO meaning "Server" is any functional device. "Client" is the special device for statistic collection only. It can be any server PC or MCU device. Servers send their statistic information by startup. Also client can request periodical state sending by polling request.
Before first INFO calls usage it is necessary to register INFO Server service :
tl_storage_impl and fw_storage_impl are storage implementations. See Storage HAL Usage for details.
typedef vs_status_e(* vs_snap_info_start_notif_srv_cb_t) (vs_snap_info_device_t *device) |
Startup notification.
Sends startup notification with device information.
[in] | device | vs_snap_info_device_t device information. |
const vs_snap_service_t* vs_snap_info_server | ( | vs_snap_info_start_notif_srv_cb_t | startup_cb | ) |
INFO Server SNAP Service implementation.
This call returns INFO server implementation. It must be called before any INFO call.
[in] | startup_cb | Startup notification server callback. If NULL, it won't be used. |
void vs_snap_info_set_firmware_ver | ( | vs_file_version_t | ver | ) |
Set version of firmware to be sent.
[in] | ver | Firmware version. |
void vs_snap_info_set_tl_ver | ( | vs_file_version_t | ver | ) |
Set version of TrustList to be sent.
[in] | ver | TrustList version. |
vs_status_e vs_snap_info_start_notification | ( | const vs_netif_t * | netif | ) |
INFO Server startup notification.
Sends startup notification.
[in] | netif | SNAP service descriptor. If NULL, default one will be used. |