Commit Graph
594 Commits
Author SHA1 Message Date
eeff 1b9ed271a4 Cache persist adapter pipe in neu_manager loop for performance 2022-01-27 21:09:03 +08:00
eeff 04dffb12f8 Refactor neu_manager loop MSG_CMD_UNSUBSCRIBE_NODE handler code
The handler code for message type MSG_CMD_UNSUBSCRIBE_NODE is
  refactored into a new function neu_manager_unsubscribe_node
2022-01-27 21:09:03 +08:00
eeff b032785e6e Refactor neu_manager loop MSG_CMD_SUBSCRIBE_NODE handler code
The handler code for message type MSG_CMD_SUBSCRIBE_NODE is refactored
  into a new function neu_manager_subscribe_node
2022-01-27 21:09:03 +08:00
eeff fa22f535ed Fix neu_manager loop memory leak when sub/unsub node 2022-01-27 21:09:03 +08:00
gc87 da831249c4 Refactoring mqtt_send_loop 2022-01-27 15:42:50 +08:00
gc87 7a5af05601 Implement mqtt's start and stop processing 2022-01-27 15:42:50 +08:00
eeff 0bd3fbe7e1 Fix neu_manager loop to acquire lock when finding persist adapter 2022-01-27 10:17:32 +08:00
eeff be35cf5db2 Fix neu_manager loop to use the correct pipe when sub/unsub node
1. When handling MSG_CMD_SUBSCRIBE_NODE, use the pipe of the
     destination node
  2. When handling MSG_CMD_UNSUBSCRIBE_NODE, use the pipe of the
     destination node
2.0.0-alpha.2
2022-01-26 11:03:31 +08:00
eeff b5c159caaa Fix persist adapter to persist node state
Update adapter command to send node update event when handling
  message type NEU_REQRESP_NODE_CTL.
2022-01-26 10:46:36 +08:00
eeff e4a674ed8e Update persist adapter to start node according to node state 2022-01-26 10:43:00 +08:00
eeff 9ec363e631 Add function neu_manager_start_adapter_with_id 2022-01-26 10:43:00 +08:00
eeff 70aa5e2d8c Fix neu_persister_create to create adapters directory 2022-01-26 10:41:12 +08:00
eeff 29c15d76f3 Refactor neu_persister_create 2022-01-26 10:41:12 +08:00
gc87 6373646972 Fix opcua plugin schema name 2022-01-25 15:07:56 +08:00
eeff a4707c61f4 Add persistence test data for pressure testing 2022-01-24 18:44:38 +08:00
eeff 3f897f22b2 Add pressure testing robot file
The pressure testing code is in the file pressure.test, so that CI
  does not pick it up.
2022-01-24 18:44:38 +08:00
eeff 9aa743bca0 Add pressure testing robotframework common resource 2022-01-24 18:44:38 +08:00
eeff c5f961cd6d Add robotframework keywords for pressure testing
1. Add keyword Get Random Node
  2. Add keyword Get Random Group Config
2022-01-24 18:44:38 +08:00
eeff 8a9feb4dd6 Fix neu_persister_delete_adapter to delete adapter data 2022-01-24 18:29:33 +08:00
eeff 418785d2c2 Fix persistence group config json unit tests 2022-01-24 18:22:59 +08:00
eeff c8729c247b Fix neu_persist_group_config_infos_free 2022-01-24 18:22:59 +08:00
eeff 1842ea9302 Fix persister_singleton_handle_grp_config 2022-01-24 18:22:59 +08:00
eeff fe47802eb1 Update persistence group config json
1. Update API docs
  2. Regenerate parser code
2022-01-24 18:22:59 +08:00
gc87 320eb6ab87 Fix mqtt write return value type error
Int32 -> errorcode
2022-01-24 18:21:01 +08:00
gc87 f3b0b14030 Modify the cmake prefix path 2022-01-24 14:24:14 +08:00
fengzero 11e2089d29 format 2022-01-24 11:16:26 +08:00
fengzero 6fee48aa69 add function pack tag value 2022-01-24 11:16:26 +08:00
fengzero 34bf8fe971 parse the public parameters of the tag address
. bit or string length
2022-01-24 11:16:26 +08:00
fengzero aa905c43b3 add a function to convert type to str 2022-01-24 11:16:26 +08:00
Parker Liu 18b1468ad6 Fix memory leak in function load_plugin_library 2022-01-22 16:44:25 +08:00
eeff f218cdb0d3 Update default persist adapter to load datatags 2022-01-21 18:58:34 +08:00
eeff fa657e79d7 Update adapter loop to handle tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 7d1fc986c9 Add neu_manager_get_persist_datatag_infos 2022-01-21 18:58:34 +08:00
eeff dd0988d9c0 Fix datatag persistence api unit test 2022-01-21 18:58:34 +08:00
eeff bdefb23f78 Update neu_persister_load_datatags with group_config_name parameter 2022-01-21 18:58:34 +08:00
eeff e3a54517e1 Update neu_persister_store_datatags
Now datatags are stored under directory of each group config.
2022-01-21 18:58:34 +08:00
eeff 6751bf0a9a Add helper function neu_persist_datatag_infos_free 2022-01-21 18:58:34 +08:00
eeff a640fd3e39 Update mqtt plugin to notify tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 1d7f343363 Update restful plugin to notify tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 50ed6581ff Update adapter event_notify to send tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 615b25fb41 Update neu manager to forward tags add/del/update events 2022-01-21 18:58:34 +08:00
eeff 372e32c1e6 Add MSG_EVENT_ADD_TAGS, MSG_EVENT_UPDATE_TAGS and MSG_EVENT_DEL_TAGS 2022-01-21 18:58:34 +08:00
eeff 528d910340 Add functions for notifying tags event
1. Add neu_plugin_notify_event_add_tags
  2. Add neu_plugin_notify_event_del_tags
  3. Add neu_plugin_notify_event_update_tags
2022-01-21 18:58:34 +08:00
eeff 83158e3845 Add new event type for tags
Add NEU_EVENT_ADD_TAGS, NEU_EVENT_UPDATE_TAGS, NEU_EVENT_DEL_TAGS
2022-01-21 18:58:34 +08:00
eeff acdb7ffcbf Fix unit test UpdateTagDecode of JsonDatatagTableTest 2022-01-21 18:58:34 +08:00
eeff c21ee589b8 Fix neu_json_update_tags_req_t to include group_config_name 2022-01-21 18:58:34 +08:00
eeff bbaae51fa5 Fix persistence data file structure according to nep 2022-01-21 18:36:13 +08:00
eeff 366d4895f5 Fix neu_manager.c code formatting 2022-01-21 17:41:00 +08:00
Parker Liu ebb533ce61 Fix the sample app can not be normal exiting when exit neuron 2022-01-21 14:33:35 +08:00
Parker Liu 54a77d0a7d Fix crash issue of registering adapter when exit neu_manager 2022-01-21 14:33:35 +08:00