Proposal for the bind interface

This commit is contained in:
David Serret
2020-04-02 13:01:30 +02:00
committed by diegoalonso29
parent daf849ef45
commit 5f0e3fd0cd
3 changed files with 62 additions and 25 deletions
+11 -1
View File
@@ -25,7 +25,10 @@
#ifndef LIVOX_SDK_H_
#define LIVOX_SDK_H_
#ifdef __cplusplus
#include<functional>
extern "C" {
#endif
@@ -100,6 +103,8 @@ typedef void (*DeviceStateUpdateCallback)(const DeviceInfo *device, DeviceEvent
*/
void SetDeviceStateUpdateCallback(DeviceStateUpdateCallback cb);
/**
* Add a broadcast code to the connecting list and only devices with broadcast code in this list will be connected. The
* broadcast code is unique for every device.
@@ -261,7 +266,7 @@ livox_status SetStaticDynamicIP(uint8_t handle,
void *client_data);
/**
* Set device's static IP mode.
* @note Mid40/100 is not supported to set subnet mask and gateway address.
* @note Mid40/100 is not supported to set subnet mask and gateway address.
* \ref SetStaticDeviceIpModeRequest's setting: net_mask and gw_addr will not take effect on Mid40/100.
* @param handle device handle.
* @param req request sent to device.
@@ -857,6 +862,11 @@ livox_status LidarSetUtcSyncTime(uint8_t handle,
#ifdef __cplusplus
}
void SetDeviceStateUpdateCallback(const std::function<void(const DeviceInfo *, DeviceEvent)> &cb);
void SetBroadcastCallback(const std::function<void(const BroadcastDeviceInfo *info)> &cb );
#endif
#endif // LIVOX_SDK_H_