gc87
25bbff646e
Fix mqtt command
2021-10-19 16:38:42 +08:00
fengzero
5ba8e31494
fix the occasional crash of the read and write api
...
add api handle ctx to the list before sending cmd
2021-10-19 14:38:29 +08:00
fengzero
23bd25f8c8
fix memory leak
...
api: get tags add query parameter group_config_name
2021-10-19 11:38:59 +08:00
fengzero
9524b859ed
fix subscribe/unsubscribe response code
2021-10-18 08:20:54 +00:00
fengzero
96940eb3be
add read/write api
...
support bit/int16/uint16/int32/uint32/float
2021-10-18 14:53:24 +08:00
fengzero
438555b948
api response Allow header
2021-10-15 07:39:43 +00:00
fengzero
6eaa2908bf
api: read/write subscribe/unsubscribe
2021-10-15 07:20:23 +00:00
fengzero
60989fb4a3
del context in msg
2021-10-15 03:17:47 +00:00
fengzero
241d67f8e0
fix clang-format
2021-10-15 02:54:32 +00:00
fengzero
e41594f6c1
api server: support CORS
2021-10-15 02:28:39 +00:00
gc87
90721f520d
Add mqtt command interface about adapter
2021-10-14 17:00:11 +08:00
gc87
0acbf3e34c
Remove message_handle.*
...
The code split in the file with the prefix command_
2021-10-14 17:00:11 +08:00
gc87
83884fd7c6
Refactor the mqtt driver management interface
...
1. Refactor the group config operation interface
2. Refactor the datatag table operation interface
2021-10-14 17:00:11 +08:00
fengzero
34647e8ae0
Add signal processing
...
Make the program exit normally and make libasan memory detection take
effect
2021-10-14 16:47:37 +08:00
lixiumei
7572835b5b
Implement tty device list interface function and find tty device
2021-10-12 15:48:32 +08:00
gc87
03a573bc46
Use groupconfig to limit the parameter range of write commands
...
- Add test
2021-10-12 10:09:45 +08:00
gc87
2fef979c9a
Fix the problem of failure to judge CSTR type
...
- Correctly write opcua data according to the datatag table type information
2021-10-12 10:09:45 +08:00
gc87
02ce6dc213
Improve OPCUA driver error code processing for reading and writing data
2021-09-30 18:35:02 +08:00
gc87
75e863ab9e
MQTT read and write data stream, replaced with new data structure
...
1. Read data once
2. Fixed a crash when opcua read once
2021-09-30 18:35:02 +08:00
lixiumei
ee75b3c09b
Perfection modbus read/write error code
2021-09-30 14:31:53 +08:00
lixiumei
64b89bfcae
Add modbus read/write error code
2021-09-29 19:04:11 +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
lixiumei
8e2222c379
modbus read/write value
2021-09-28 12:07:39 +08:00
gc87
e9acf8e1c2
Switch to the new serialized data structure
...
1. OPCUA driver read response switch
2. OPCUA driver write request switch
2021-09-28 12:03:31 +08:00
gc87
47f6e54efd
Fixed crash caused by uninitialized OPCUA client
2021-09-26 18:53:03 +08:00
fengzero
7f744a1956
fix uninitialized TAILQ
...
causes a crash when accessing TAILQ
2021-09-26 17:46:11 +08:00
fengzero
a9c18532ee
del add/update group config dst_node_id
2021-09-26 17:24:47 +08:00
fengzero
d25f93290e
fix json parse unit test
...
clang-format neu_types.h
2021-09-26 17:24:47 +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
gc87
e018d73a6f
Fix the link error of OPCUA driver
2021-09-24 18:49:04 +08:00
gc87
5898c2ab8e
Add cyclic reading support and subscription support
2021-09-24 16:10:03 +08:00
gc87
eb00cc6070
Refactoring the OPC-UA driver
...
1. Simplify the code of read and write
2021-09-24 16:10:03 +08:00
fengzero
662ae1ec2d
refactor json parse
...
separate mqtt parameter decode/encode
2021-09-24 16:06:48 +08:00
fengzero
4f5e858146
modbus: add subscribe/unsubscribe reqeust and check for group config updates
2021-09-22 10:12:50 +08:00
gc87
dae9f9def4
Read configuration file
2021-09-16 19:16:49 +08:00
Parker Liu
74f1c33968
Add periodic read command and subscribe/unsubscribe driver command
...
* Add commands for start/stop periodic read and support in manager
* Add commands for subscribe/unsubscribe driver and support in manager
* Add commands for group config changed and support in manager
2021-09-16 19:12:05 +08:00
Parker Liu
1e7264f4a7
Add a standalone CMakeLists file for sample plugins
2021-09-16 11:50:31 +08:00
Parker Liu
b49332ca2d
Fix issue of failed build modbus plugin in macOS
2021-09-16 11:43:59 +08:00
fengzero
312d432569
fix use nng in plugins by linking dynamic libraries
...
clang-format message_handle
2021-09-16 10:14:08 +08:00
Parker Liu
8d14c5ec8c
Add get/set familly functions for cstr/string/bytes/array/vec
2021-09-15 19:02:28 +08:00
fengzero
370aed5e2d
modbus tcp: add cycle read
...
del demo code
use aio timeout as timer
2021-09-15 19:00:14 +08:00
gc87
7c3a2ccfaa
Complete adaptation of mqtt driver and modbus-tcp driver
...
1. Fix modbus write value error
2021-09-14 10:28:24 +08:00
gc87
6817eeae6d
Improve the read command of opcua driver
2021-09-13 18:10:07 +08:00
fengzero
0fed83398e
read/write 2 tags for demo
2021-09-13 17:41:42 +08:00
gc87
112f9fe0f3
Add opcua plugin support
...
1. Update README.md
2. Update install-lib.sh
3. Add the key field to the variable
4. Use config to read
5. It works
2021-09-12 22:58:51 +08:00
fengzero
a84853692a
Add parser yaml config module
...
del unused file
dashboard plugin read config from neuron.yaml
2021-09-11 11:09:50 +08:00
lixiumei
071de30f90
Add add/delete/update/get plugin api
2021-09-11 10:53:33 +08:00