Commit Graph

25 Commits

Author SHA1 Message Date
fengzero 3ed6f842ec refactor http error response
use the state of the adapter as the running state of the plugin
2021-11-24 14:49:21 +08:00
Parker Liu 6a1f182e46 Fix issue of system hung on restart a node 2021-11-23 16:30:25 +08:00
Parker Liu be83f83101 Send a exit message to a node that should be stoped 2021-11-23 12:14:53 +08:00
alvin1221 616d2cebc2 format plugin_sample_app.c 2021-11-17 14:45:39 +08:00
alvin1221 7d5522630d Support cross compile & Fix incompatible errors 2021-11-16 22:28:12 +08:00
Parker Liu 5eacdf938d Fix memory leak issue in serial/deserial data value 2021-10-19 16:43:05 +08:00
Parker Liu f431b27b9b Delete some abolition functions and add some functions for fix issue of
memory leaking

* Delete neu_dvalue_array_new and neu_dvalue_vec_new
* Delete set/get function for vec and array
* Add free sub data value in array and vector
2021-09-29 18:51:41 +08:00
Parker Liu 940acfd3f6 Improve the implementation of set/get functions in data value 2021-09-28 17:22:25 +08:00
Parker Liu e6ff008086 Add response message and support result of array for read/write
* Add support MSG_DATA_READ_RESP/MSG_DATA_WRITE_RESP in adapter
  for read/write data
* Add NEU_REQRESP_READ_RESP/NEU_REQRESP_WRITE_RESP in core manager
  for read/write data
* Add return result of array in sample driver plugin for read/write data
* Add handle result of array in sample app plugin for read/write data
2021-09-28 12:08:43 +08:00
Parker Liu 3b369acf25 Add send subscribe node message when Add default group configs 2021-09-26 17:15:59 +08:00
Parker Liu ba89625545 Switch to neu_data_val_t in sample plugin for read and write 2021-09-26 15:06:05 +08:00
Parker Liu 94aed75898 Add functions of add/del/update/get plugin lib for plugin lib
* Add functions of add/del/update/get plugin lib in plugin_manager.c
* Add command of add/del/update/get plugin lib in adapter.c
2021-09-03 19:21:52 +08:00
fengzero be1d8919b5 Add plugin cmd function
add/del/update/get node
add/del/update/get group config
send read/write cmd
response trans data
get self node id
2021-09-02 15:56:30 +08:00
fengzero 288175996c Add plugin cmd function
add NEU_REQRESP_GET_SELF_NODE_ID cmd
add get_datatags_table func
define neu_addt_str_t
fix compile warning
add magic number and check function in neu_plugin_common_t
2021-09-02 11:22:51 +08:00
Parker Liu 7d6cd69c2e Add a waiting for get group configs in sample app plugin 2021-08-27 16:47:14 +08:00
Parker Liu 0013a64ba3 Fix issue of mqtt plugin can't get databuf response from driver
* Sometimes add subscription pipe to group config will be executed before
  bind adapter, the wrong pipe will be subscribe in group config. So we
  wait for complete binding adapter and then add subscription pipe.
* Fix issue of failed to build with gcc 10.3.0
2021-08-26 14:26:33 +08:00
Parker Liu 9c42cdea41 Fix failed build in macOS by remove using epoll
The modbus tcp plugin can not work good because we use replace some functions
with empty function.
2021-08-25 16:24:28 +08:00
gc87 11f7141af2 Improve MQTT driver and Variable
1. Variable array serialization and deserialization support
2. Variable basic data type setting
3. Variable export function unit test
4. Integrate MQTT and Variable
5. Delete the work queue in the MQTT driver
2021-08-25 12:10:30 +08:00
Parker Liu f14dadb4e3 Add support sync command of add/del/update node and group config
* Support these sync command in adapter.c
* Add some interface functions in neu_manager.c to support these command
* Add enum type of error code for neuron
2021-08-24 19:21:57 +08:00
Parker Liu c5681f6dfc Add sample code for get nodes/grp_configs/tagtable command
* Move source files of datatag table and tag group config to base
* Fix memleak when execute command of get nodes/grp_configs/tagtable
2021-08-20 15:48:24 +08:00
Parker Liu 5ba72cefb6 Add a sender adapter id for command message
* Change the node_id to dst_node_id in plugin request
2021-08-19 16:12:46 +08:00
Parker Liu 401228fd36 Add support static plugin in plugin manager 2021-08-18 15:01:36 +08:00
Parker Liu c791bc301a Add support write data command and dispatch transfer data
Support the write data command in sample plugin, adapter and manager.
Add the default subsribe pipes for dispatch transfer data.
2021-08-13 17:13:31 +08:00
Parker Liu 62b35e1285 Add some request/resposne/command for adapter and plugin
Add structure definition for request/response/command, add get nodes
function and get group configs function in manager.
2021-08-12 19:29:25 +08:00
Parker Liu e699329d14 Add sample app plugin and add message dispatcher
Add some message/request/event for improvement transfer data
2021-08-11 16:11:32 +08:00