Parker Liu
f176c31d08
Modify jansson_DIR and JANSSON_INCLUDE_DIRS for build libjwt
2021-12-08 18:59:04 +08:00
Parker Liu
937bfc90e4
Remove call install-libs.sh script in dockerfile
...
The base docker image had already install dependent libraries, so we remove
the statement of calling install-libs.sh in dockerfile
2021-12-08 17:42:05 +08:00
Parker Liu
cdded3916f
Disable build shared library for libjwt
2021-12-08 16:53:09 +08:00
eeff
476317cfcc
Fix node API functionality test
...
1. Fix test for GET unknown node type
1. Add test for GET invalid node type
2021-12-08 14:39:33 +08:00
eeff
07b0e4f1ae
Add unit tests for http_get_param
2021-12-08 14:39:33 +08:00
eeff
935b20eb40
Fix usage of http_get_param_int
2021-12-08 14:39:33 +08:00
eeff
eb25ff64c1
Fix restful plugin http query parameter parsing.
...
Previously the function get_param used a static variable to store
parsed data which is not re-entrant, and thus cause bugs.
1. fix get_param and http_get_param to return pointer and len
2. Remove http_get_param_int
3. Add http_get_param_uintmax
4. Add http_get_param_uint32
5. add http_get_param_node_id
6. add http_get_param_node_type
2021-12-08 14:39:33 +08:00
gc87
03f2ac2fa1
Add Device error code in opcua
2021-12-08 14:32:51 +08:00
Parker Liu
07d8e11a22
Enable -fPIC flag for build libjwt
2021-12-08 12:13:39 +08:00
Parker Liu
2e889bda3b
Fix error of clang-format and remove sudo in dev.yml
2021-12-08 11:36:59 +08:00
Parker Liu
80337b6b30
Fix crash issue of setting config to opcua adapter
2021-12-07 14:59:38 +08:00
eeff
400e0f6934
Fix subscribe group config
...
This fix neu_manager to add the group config to the subscribing node
when north app subscribe for group config.
2021-12-06 15:22:27 +08:00
lixiumei
373aa2f167
Improve modbus tcp function test
2021-12-06 14:34:23 +08:00
Parker Liu
1f5d56e2ba
Fix memory leak of subscribing a group config
2021-12-03 18:23:35 +08:00
eeff
d343caf914
Fix mqtt plugin datatag command
2021-12-03 17:30:55 +08:00
eeff
a601c441d7
Fix restful plugin datatag handler
2021-12-03 17:30:55 +08:00
eeff
a74e09bace
Add NEU_ERR_TAG_NAME_EXIST error code
2021-12-03 17:30:55 +08:00
eeff
4b6e9acc1e
Fix datatag name uniqueness checking
2021-12-03 17:30:55 +08:00
eeff
3b606a10b4
Add neu_datatag_alloc and neu_datatag_free
2021-12-03 17:30:55 +08:00
eeff
33cd14a117
Add hash table utils
2021-12-03 17:30:55 +08:00
eeff
e1567f1bff
Fix datatag_table test cases
2021-12-03 17:30:55 +08:00
eeff
5a40a66ac1
Refactor: variable renamning
...
Rename neu_datatag_table to datatag_table
2021-12-03 17:30:55 +08:00
eeff
b2aaa88f92
Fix mqtt plugin to call neu_dvalue_get_bit for NEU_DTYPE_BIT
2021-12-02 23:01:08 +08:00
Parker Liu
b203d685b1
Fix issue of it can not get data after subcribe a group config
2021-12-02 19:08:31 +08:00
Parker Liu
de2588fedc
Add a function test for read input reg area as int16
2021-12-02 14:31:59 +08:00
lixiumei
fe4896d319
Add login and logout function test
2021-12-02 14:17:01 +08:00
gc87
f4e5ef384c
Fix opcua bool type parsing error
...
- And add other type support
2021-12-02 10:11:09 +08:00
lixiumei
e477e8d184
Fix http error code
2021-12-01 16:59:02 +08:00
Parker Liu
6360ef39f1
Add a traverse function for idhash table
2021-12-01 10:57:46 +08:00
Parker Liu
8faad35f93
Fix crash issue of adding a same name group config
2021-12-01 10:46:35 +08:00
Parker Liu
09fe21f39a
Remove unused librt in CMakeLists.txt for opcua simulator
2021-11-30 16:51:55 +08:00
gc87
cff79b9e42
Refactored some MQTT command processing functions
...
1. Group config
2. Data tag
3. Read and write
2021-11-30 16:34:44 +08:00
gc87
ec939bd9ed
Fix OPCUA failed to read data
...
Because the index is not increased correctly, a single data point reading failure causes all data assignment errors
2021-11-30 16:34:44 +08:00
gc87
587bf7fefc
Add OPC-UA simulator
2021-11-30 15:40:46 +08:00
eeff
a13653f5b5
Fix jwt_test ASAN odr-violation
2021-11-30 15:38:43 +08:00
fengzero
66b74c690e
add asynchronous io and timer
...
asyn io is not implemented
use epoll/timerfd on linux
use kqueue on unix
2021-11-30 15:38:14 +08:00
eeff
e417205727
Add log label to the logging facilities
...
1. Add a new label argument in log_log
2. Add a set of interfaces to assist node name logging
2021-11-30 09:58:49 +08:00
eeff
019efe4d2c
Add function neu_plugin_self_node_name
2021-11-30 09:58:49 +08:00
Parker Liu
ae131c4da6
Fix building error in tcp_server/neu_plugin_common.c for macOS
2021-11-29 18:49:24 +08:00
lixiumei
6a824a6e8c
API function text add JWT
2021-11-29 18:16:50 +08:00
lixiumei
253d346452
Add login and logout
2021-11-29 18:16:50 +08:00
lixiumei
dcf9160735
login
2021-11-29 18:16:50 +08:00
Parker Liu
2619100f13
Add ci processing in push commit action
2021-11-29 17:16:26 +08:00
Parker Liu
d8439b9a35
Move the printing adapter name of log to before unbind wake
2021-11-29 17:01:19 +08:00
fengzero
fd07e7fd5c
ft: modbus tcp read/write
...
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
Parker Liu
2d66177bbb
Do not lock adapters_mtx when waiting unbind adapter
2021-11-27 14:37:08 +08:00
Parker Liu
3d4d6daf45
Fix issue of UAF of group config in node when exiting main process
2021-11-26 23:17:09 +08:00
Parker Liu
96ec75833e
Fix issue of occasional crash when deleting a node
2021-11-26 23:10:16 +08:00
Parker Liu
dfeb5fb4a7
Add function neu_system_ref_group_config for reference a special group config
2021-11-26 18:37:56 +08:00
gc87
906b9c053c
Add subscription management interface in mqtt
...
- Modify the existing interface naming of group config
2021-11-26 15:17:48 +08:00