|
#define | NODE_FW_VERSION_KEY "fw_version" |
|
#define | NODE_FW_VERSION_SW_PATCH_KEY "sw_patch" |
|
#define | NODE_FW_VERSION_SW_MINOR_KEY "sw_minor" |
|
#define | NODE_FW_VERSION_SW_MAJOR_KEY "sw_major" |
|
#define | NODE_FW_VERSION_BOOT_KEY "boot" |
|
#define | NODE_FW_VERSION_HW_REVISION_KEY "hw_revision" |
|
#define | NODE_FW_VERSION_PROTOCOL_KEY "protocol" |
|
#define | NODE_ADDR_KEY "addr" |
|
#define | NODE_ADDR_A0_KEY "a0" |
|
#define | NODE_ADDR_A1_KEY "a1" |
|
#define | NODE_ADDR_A2_KEY "a2" |
|
#define | NODE_ADDR_A3_KEY "a3" |
|
#define | NODE_INFO_KEY "node_info" |
|
#define | NODE_INFO_MODEL_KEY "model" |
|
#define | NODE_INFO_SERIAL_NUMBER_KEY "serialNumber" |
|
#define | NODE_INFO_FW_VERSION_KEY "fw_version" |
|
#define | NODE_INFO_ADDR_KEY "addr" |
|
#define | NODE_INFO_CONFIG_CRC_KEY "configCrc" |
|
#define | SENSOR_VALUES_KEY "sensor_values" |
|
#define | SENSOR_VALUE_STATE_KEY "value state" |
|
#define | SENSOR_VALUE_TYPE_KEY "value_type" |
|
#define | IO_INPUT "IO_INPUT" |
|
#define | IO_OUTPUT "IO_OUTPUT" |
|
#define | SENSOR_VALUE_ANALOG_KEY "analog" |
|
#define | SENSOR_VALUE_ANALOG_VALUE_KEY "value" |
|
#define | SENSOR_VALUE_DISCRETE_KEY "discrete" |
|
#define | SENSOR_VALUE_DISCRETE_VALUE_KEY "value" |
|
#define | SENSOR_VALUE_DISCRETE_COUNT_KEY "count" |
|
#define | NODE_STATUS_KEY "node_status" |
|
#define | NODE_STATUS_AVAILABALE_KEY "available" |
|
#define | NODE_STATUS_AVAILABALE_YES_STR "yes" |
|
#define | NODE_STATUS_AVAILABALE_NO_STR "no" |
|
#define | NODE_STATUS_DATA_ERROR_KEY "data_error" |
|
#define | NODE_STATUS_DATA_ERROR_YES_STR "yes" |
|
#define | NODE_STATUS_DATA_ERROR_NO_STR "no" |
|
#define | VALUES_COUNT_KEY "values_count" |
|
#define | SENSORS_NODE_KEY "node_data" |
|
#define | SENSOR_DATA_KEY "sensor_data" |
|
#define | SENSOR_DATA_DATA_KEY "data" |
|
#define | SENSOR_DATA_UPDATE_COUNTER_KEY "updateCounter" |
|
#define | SENSOR_DATA_NODES_COUNT_KEY "nodesСount" |
|
#define | SENSOR_DATA_NODES_KEY "nodes" |
|
#define | SENSOR_DATA_CRC_KEY "crc" |
|
#define | PRINT_JSONED(DATA, METHOD, MSG) |
|
#define | PRINT_JSONED_NODE_FW_VERSION(FWS, MSG) PRINT_JSONED(FWS, json_node_fw_version, MSG) |
|
#define | PRINT_JSONED_NODE_ADDR(ADDR, MSG) |
|
#define | PRINT_JSONED_SERIAL_NUM(FWS, MSG) PRINT_JSONED(FWS, json_serialnum, MSG) |
|
#define | PRINT_JSONED_NODE_INFO(FWS, MSG) PRINT_JSONED(FWS, json_node_info, MSG) |
|
#define | PRINT_JSONED_SENSOR_VALUE(FWS, MSG) PRINT_JSONED(FWS, json_sensor_value, MSG) |
|
#define | PRINT_JSONED_NODE_STATUS(FWS, MSG) PRINT_JSONED(FWS, json_node_status, MSG) |
|
#define | PRINT_JSONED_SENSORS_NODE(FWS, MSG) PRINT_JSONED(FWS, json_sensors_node, MSG) |
|
|
int | parse_node_fw_version (struct json_object *pobj, node_fw_version_t *p) |
| parse json obj for node_fw_version_t More...
|
|
struct json_object * | json_node_fw_version (node_fw_version_t *p) |
| create and fill json object from node_fw_version_t More...
|
|
int | parse_node_addr (struct json_object *pobj, node_addr_t *paddr) |
| parse json obj for node_addr_t More...
|
|
struct json_object * | json_node_addr (node_addr_t *addr, int as_string) |
| create and fill json object from node_addr_t as object More...
|
|
int | parse_serialnum (struct json_object *pobj, node_serial_num_t *sn) |
| parse json obj for serialnum node_serial_num_t More...
|
|
struct json_object * | json_serialnum (node_serial_num_t *sernum) |
| create and fill json object from node_serial_num_t as object More...
|
|
int | parse_node_info (struct json_object *pobj, node_info_t *p) |
| parse json obj for node_info_t More...
|
|
struct json_object * | json_node_info (node_info_t *p) |
| create and fill json object from node_info_t as object More...
|
|
int | parse_sensor_value (struct json_object *pobj, sensor_value_t *p) |
| parse json obj for sensor_value_t More...
|
|
struct json_object * | json_sensor_value (sensor_value_t *p) |
| create and fill json object from sensor_value_t as object More...
|
|
int | parse_node_status (struct json_object *pobj, node_status_t *p) |
|
struct json_object * | json_node_status (node_status_t *p) |
|
int | parse_sensors_node (struct json_object *pobj, sensors_node_t *p) |
|
struct json_object * | json_sensors_node (sensors_node_t *p) |
|
void | print_sensors_node (sensors_node_t *p, char *msg) |
|
int | parse_sensors_data (struct json_object *pobj, sensors_data_t **pp) |
| parse json with sensors_data More...
|
|
struct json_object * | json_sensors_data (sensors_data_t *p) |
|
void | print_sensors_data (sensors_data_t *p, char *msg) |
|
Created on: 25 мар. 2024 г. Author: ps