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
fengzero
2abc5a6f27
Add tcp for connecting device and add modbus tcp plugin
...
*use epoll process tcp connection
*define modbus protocol struct and pack function
2021-08-24 11:52:22 +08:00
Parker Liu
dacb0d112f
Remove parameter manager in function neu_adapter_start and neu_adapter_stop
2021-08-20 17:29:26 +08:00
Parker Liu
b250cca377
Fix issue of crash in manager_bind_adapter
...
If we set manager to adapter in function neu_adapter_start, then the
source code "adapter->manager = manager" sometimes running after get
manager in function manager_bind_adapter.
So we set manager to adapter in function neu_adapter_create.
2021-08-20 16:04:35 +08:00
Parker Liu
d9691c68d8
Do clang-format for src/types.c
2021-08-20 15:58:25 +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
437ae67c47
Add message NEU_REQRESP_GET_DATATAGS for get datatag table
...
* Add two message NEU_REQRESP_GET_DATATAGS and NEU_REQRESP_DATATAGS
* Add get datatag table function in bus manager and datatag manager
2021-08-19 18:47:35 +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
fengzero
5b2d7476ff
set json encode JSON_REAL_PRECISION to 16
...
11.223 encode to 11.223, not 11.223000000001
2021-08-18 18:40:18 +08:00
Parker Liu
0a82c55dab
Implement a static plugin of default dashboard in rest.c
2021-08-18 17:46:57 +08:00
gc87
8ece52398e
Improve the connection stability of paho client
...
* Change Modify the subscription list from vector to list.
* Fix the problem of reconnection block.
* Refactor connection_lost_callback function.
2021-08-18 16:08:03 +08:00
fengzeroz
43f1c2a1fb
Merge pull request #32 from fengzeroz/main
...
Del unused file
2021-08-18 15:49:12 +08:00
fengzero
d46411f08a
Del unused file
2021-08-18 07:47:37 +00:00
Parker Liu
401228fd36
Add support static plugin in plugin manager
2021-08-18 15:01:36 +08:00
fengzero
7c0fb80928
Add login api
...
user management and jwt have not yet been implemented
2021-08-18 10:22:41 +08:00
Parker Liu
16b6ed3aa9
Add googletest to install tool list in install-libs.sh
2021-08-16 11:35:54 +08:00
Yiqun Chen
b1e904eca5
chore(ci): add ci support
2021-08-16 10:10:03 +08:00
fengzeroz
6a3aa9031b
Merge pull request #29 from fengzeroz/main
...
format code by clang-format
2021-08-16 09:31:46 +08:00
fengzero
d4d1633efe
format code by clang-format
2021-08-16 01:30:12 +00:00
gc87
1cd7b4877e
Simple implementation of using MQTT commands to control the reading and writing of neuron drive data.
2021-08-15 08:08:36 +08:00
Parker Liu
8d25825b61
cut out the project path from log file path
2021-08-13 21:57:36 +08:00
fengzero
11e0a8e8dc
Add unit tests for json api read/write
2021-08-13 17:52:59 +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
1536034cf0
Fix issue of store missing pipe for bind adapter
2021-08-13 17:13:31 +08:00
gc87
973e0b234f
Simple implementation of variable serialize and deserialize and Use list instead of vector to implement task queue.
2021-08-13 17:12:25 +08:00
fengzero
3f85eeae95
Add unit tests for json encode
2021-08-13 15:01:20 +08:00
fengzero
64c35cda0b
Add unit tests for json decode
2021-08-13 10:49:32 +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
fengzero
e10dea4051
parse read/write
2021-08-12 15:59:14 +08:00
Parker Liu
f981f00908
Change malloc.h to stdlib.h for success build in macOS
2021-08-11 18:20:47 +08:00
fengzero
636afc8e18
rest server
2021-08-11 18:11:40 +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
Parker Liu
91164074d0
Fix issue of failed build in macOS
2021-08-11 15:45:00 +08:00
gc87
5a98c57d7d
Imporve MQTT client and add task queue.
2021-08-11 15:39:47 +08:00
fengzeroz
50556b0e99
Merge pull request #18 from fengzeroz/main
...
refactor dependent libs
2021-08-11 09:29:08 +08:00
fengzero
f38f049ebd
refactor dependent libs
2021-08-09 09:30:55 +00:00
Parker Liu
d7d07cb643
Update plugin_manager.c
2021-08-09 17:18:00 +08:00
fengzero
3d034ba9c6
OS X support AddressSanitizer
2021-08-09 17:18:00 +08:00
gc87
4229a7c283
Implementation of MQTT plug-in.
2021-08-09 14:20:57 +08:00
fengzero
16ce3f5702
fix print databuf
2021-08-09 14:09:04 +08:00
fengzero
afea66195f
wrap json encode/decode
2021-08-09 11:21:57 +08:00
Parker Liu
7da6954f77
Improvement the datatag manager and name of plugin/adapter
2021-08-09 07:55:06 +08:00
Parker Liu
ae47b8e9ce
Add datatag manager and datatag group config
2021-08-06 18:31:51 +08:00
alvin1221
8ed7485461
Merge pull request #10 from alvin1221/alvin/webserver
...
Update README.md & Rename web_server to neu_webserver
2021-08-06 16:13:20 +08:00
alvin1221
958d2e5e6e
Add function to get absolute path
2021-08-06 15:59:55 +08:00
alvin1221
1ac8867c9b
Fix merge conflicts
2021-08-06 15:59:33 +08:00
alvin1221
1b60a11e21
Update README.md & Rename web_server to neu_webserver
2021-08-06 15:58:42 +08:00
fengzero
01f98406cc
fix dlopen so failed when ld libasan
2021-08-06 10:18:58 +08:00
fengzero
dc693c2b84
fix compile warning and add json
2021-08-05 17:43:00 +08:00
fengzero
f30dc14e1a
remove cjson
2021-08-04 17:49:50 +08:00