mirror of
https://github.com/emqx/neuron.git
synced 2026-10-27 21:41:01 +08:00
format
This commit is contained in:
@@ -171,8 +171,8 @@ static int driver_validate_tag(neu_plugin_t *plugin, neu_datatag_t *tag)
|
||||
plugin,
|
||||
"validate tag success, name: %s, address: %s, type: %d, slave id: "
|
||||
"%d, start address: %d, n register: %d, area: %s",
|
||||
tag->name, tag->addr_str, tag->type,
|
||||
point.slave_id, point.start_address, point.n_register,
|
||||
tag->name, tag->addr_str, tag->type, point.slave_id,
|
||||
point.start_address, point.n_register,
|
||||
modbus_area_to_str(point.area));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,19 +28,19 @@ extern "C" {
|
||||
|
||||
#include "common.h"
|
||||
|
||||
int command_rw_read_once_request(neu_plugin_t *plugin, neu_json_mqtt_t *mqtt,
|
||||
neu_json_read_req_t *req, uint32_t req_id);
|
||||
//char *command_rw_read_once_response(neu_plugin_t *plugin, uint32_t node_id,
|
||||
//neu_json_mqtt_t *parse_header,
|
||||
//neu_data_val_t * resp_val);
|
||||
int command_rw_read_once_request(neu_plugin_t *plugin, neu_json_mqtt_t *mqtt,
|
||||
neu_json_read_req_t *req, uint32_t req_id);
|
||||
// char *command_rw_read_once_response(neu_plugin_t *plugin, uint32_t node_id,
|
||||
// neu_json_mqtt_t *parse_header,
|
||||
// neu_data_val_t * resp_val);
|
||||
// char *command_rw_read_periodic_response(neu_plugin_t *plugin, uint64_t
|
||||
// sender, const char * node_name, neu_taggrp_config_t *grp_config,
|
||||
// neu_data_val_t * resp_val,
|
||||
// int upload_format);
|
||||
int command_rw_write_request(neu_plugin_t *plugin, neu_json_mqtt_t *mqtt,
|
||||
neu_json_write_req_t *write_req, uint32_t req_id);
|
||||
//char *command_rw_write_response(neu_json_mqtt_t *parse_header,
|
||||
//neu_data_val_t * resp_val);
|
||||
int command_rw_write_request(neu_plugin_t *plugin, neu_json_mqtt_t *mqtt,
|
||||
neu_json_write_req_t *write_req, uint32_t req_id);
|
||||
// char *command_rw_write_response(neu_json_mqtt_t *parse_header,
|
||||
// neu_data_val_t * resp_val);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user