This commit is contained in:
fengzero
2022-06-10 04:43:05 +00:00
parent f8cf649e55
commit 5b24337575
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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));
}
+9 -9
View File
@@ -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
}