The wsn proxy provides an interface to a Wireless Sensor Network. More...
Detailed Description
The wsn proxy provides an interface to a Wireless Sensor Network.
Classes | |
struct | playerc_wsn_t |
Note: the structure describing the WSN node's data packet is declared in Player. More... | |
Functions | |
PLAYERC_EXPORT playerc_wsn_t * | playerc_wsn_create (playerc_client_t *client, int index) |
Create a wsn proxy. More... | |
PLAYERC_EXPORT void | playerc_wsn_destroy (playerc_wsn_t *device) |
Destroy a wsn proxy. More... | |
PLAYERC_EXPORT int | playerc_wsn_subscribe (playerc_wsn_t *device, int access) |
Subscribe to the wsn device. More... | |
PLAYERC_EXPORT int | playerc_wsn_unsubscribe (playerc_wsn_t *device) |
Un-subscribe from the wsn device. More... | |
PLAYERC_EXPORT int | playerc_wsn_set_devstate (playerc_wsn_t *device, int node_id, int group_id, int devnr, int state) |
Set the device state. More... | |
PLAYERC_EXPORT int | playerc_wsn_power (playerc_wsn_t *device, int node_id, int group_id, int value) |
Put the node in sleep mode (0) or wake it up (1). More... | |
PLAYERC_EXPORT int | playerc_wsn_datatype (playerc_wsn_t *device, int value) |
Change the data type to RAW or converted engineering units. More... | |
PLAYERC_EXPORT int | playerc_wsn_datafreq (playerc_wsn_t *device, int node_id, int group_id, double frequency) |
Change data delivery frequency. More... | |
Function Documentation
◆ playerc_wsn_create()
PLAYERC_EXPORT playerc_wsn_t* playerc_wsn_create | ( | playerc_client_t * | client, |
int | index | ||
) |
Create a wsn proxy.
◆ playerc_wsn_datafreq()
PLAYERC_EXPORT int playerc_wsn_datafreq | ( | playerc_wsn_t * | device, |
int | node_id, | ||
int | group_id, | ||
double | frequency | ||
) |
Change data delivery frequency.
◆ playerc_wsn_datatype()
PLAYERC_EXPORT int playerc_wsn_datatype | ( | playerc_wsn_t * | device, |
int | value | ||
) |
Change the data type to RAW or converted engineering units.
◆ playerc_wsn_destroy()
PLAYERC_EXPORT void playerc_wsn_destroy | ( | playerc_wsn_t * | device | ) |
Destroy a wsn proxy.
◆ playerc_wsn_power()
PLAYERC_EXPORT int playerc_wsn_power | ( | playerc_wsn_t * | device, |
int | node_id, | ||
int | group_id, | ||
int | value | ||
) |
Put the node in sleep mode (0) or wake it up (1).
◆ playerc_wsn_set_devstate()
PLAYERC_EXPORT int playerc_wsn_set_devstate | ( | playerc_wsn_t * | device, |
int | node_id, | ||
int | group_id, | ||
int | devnr, | ||
int | state | ||
) |
Set the device state.
◆ playerc_wsn_subscribe()
PLAYERC_EXPORT int playerc_wsn_subscribe | ( | playerc_wsn_t * | device, |
int | access | ||
) |
Subscribe to the wsn device.
◆ playerc_wsn_unsubscribe()
PLAYERC_EXPORT int playerc_wsn_unsubscribe | ( | playerc_wsn_t * | device | ) |
Un-subscribe from the wsn device.