add icsneo_is_online_supported
parent
82502db319
commit
9acd669feb
|
|
@ -271,6 +271,16 @@ ICSNEO_API icsneo_error_t icsneo_is_online(icsneo_device_t* device, bool* is_onl
|
|||
return icsneo_error_success;
|
||||
}
|
||||
|
||||
ICSNEO_API icsneo_error_t icsneo_is_online_supported(icsneo_device_t* device, bool* is_online_supported) {
|
||||
if (!device || !is_online_supported) {
|
||||
return icsneo_error_invalid_parameters;
|
||||
}
|
||||
auto dev = device->device;
|
||||
*is_online_supported = dev->isOnlineSupported();
|
||||
|
||||
return icsneo_error_success;
|
||||
}
|
||||
|
||||
ICSNEO_API icsneo_error_t icsneo_set_message_polling(icsneo_device_t* device, bool enable) {
|
||||
if (!device) {
|
||||
return icsneo_error_invalid_parameters;
|
||||
|
|
|
|||
|
|
@ -216,13 +216,22 @@ ICSNEO_API icsneo_error_t icsneo_go_online(icsneo_device_t* device, bool go_onli
|
|||
|
||||
/** @brief Get the online state of a device.
|
||||
*
|
||||
* @param[in] icsneo_device_t device The device to set the online state of.
|
||||
* @param[in] icsneo_device_t device The device to get the online state of.
|
||||
* @param[out] bool true if online, false if offline.
|
||||
*
|
||||
* @return icsneo_error_t icsneo_error_success if successful, icsneo_error_invalid_parameters otherwise.
|
||||
*/
|
||||
ICSNEO_API icsneo_error_t icsneo_is_online(icsneo_device_t* device, bool* is_online);
|
||||
|
||||
/** @brief Get the online supported state of a device.
|
||||
*
|
||||
* @param[in] icsneo_device_t device The device to get the online supported state of.
|
||||
* @param[out] bool true if online, false if offline.
|
||||
*
|
||||
* @return icsneo_error_t icsneo_error_success if successful, icsneo_error_invalid_parameters otherwise.
|
||||
*/
|
||||
ICSNEO_API icsneo_error_t icsneo_is_online_supported(icsneo_device_t* device, bool* is_online_supported);
|
||||
|
||||
|
||||
/** @brief Set the message polling state of a device.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue