Parker Liu
aeb020e885
Send a Exit message to manager for ensure quit the manager
...
* Create a main adapter for send message to neuron manager
2022-01-05 18:32:59 +08:00
eeff
2928a7a46a
Fix mqtt functionality tests CI
...
1. Make mosquitto more verbose
2. Sleep for 1 second in mqtt LOGIN keyword
2021-12-31 18:43:43 +08:00
Parker Liu
d8e9ac3687
Fix use after free issue when mqtt plugin write data to driver
2021-12-31 17:23:23 +08:00
eeff
1b4d373b9c
Fix mqtt functionality tests CI
...
1. Start the mosquitto broker
2. Change the mqtt client version to 3.1.1
2021-12-31 16:39:57 +08:00
Parker Liu
fcae8d46de
Fix failed to pass clang-format in neu_data_expr.h
2021-12-31 15:08:13 +08:00
Parker Liu
acb14bcdf3
Add shared data value mode for transfer data between adapters
...
* Add a function neu_dvalue_to_owned for owner all values in data value
and sub data values in it.
* Add a neu_trans_buf struct for wrap shared data value and
core_databuf.
* replace core_databuf with neu_trans_buf in read/write/transfer
message.
2021-12-31 15:01:25 +08:00
eeff
d23311447e
Fix mqtt functionality tests CI
2021-12-31 11:04:17 +08:00
fengzero
99816cb1e2
fix: only when rv==0 and need_forward==1, the unsubscribe message is forwarded
2021-12-31 10:22:01 +08:00
fengzero
47322c087f
add neuron-config.cmake
2021-12-30 18:12:55 +08:00
fengzero
eab7abae38
schema: add file type
2021-12-30 18:12:55 +08:00
fengzero
7607a42299
schema: add attribute, condition
...
attribute: optional indicates that the field is optional, required
indicates that the filed is required.
condition: when the value of the preceding field is the set value, the
field is displayed.
2021-12-30 18:12:55 +08:00
fengzero
fa4724da97
del the test of mqtt in config
2021-12-30 18:12:55 +08:00
eeff
322464c54b
Fix memory leak in macro ADAPTER_RESP_CODE
2021-12-30 11:16:44 +08:00
eeff
05f1e19ac0
Change functionality test mqtt broker host to localhost
2021-12-29 17:14:02 +08:00
eeff
b1dcbf5efb
Enable mqtt functionality tests in CI
2021-12-29 17:14:02 +08:00
eeff
f56c32ab39
Move functionality tests python dependencies to requirements.txt
2021-12-29 17:14:02 +08:00
fengzero
d4fd6b1848
fix to read the free data when unsubscribing
2021-12-29 17:10:10 +08:00
fengzero
e4f947f2d2
install plugin to lib/neuron, install public header to include/neuron
2021-12-29 17:10:10 +08:00
gc87
3d58df133b
The emulator supports data points of Chinese ID
2021-12-29 16:52:13 +08:00
eeff
96b6f030aa
Add mosquitto broker to CI docker base image
2021-12-29 16:45:24 +08:00
eeff
eff9d5937d
Reduce modbus tcp functionality tests sleep interval
2021-12-29 15:10:49 +08:00
eeff
291e9c2fc3
Refactor functionality tests
...
Use [Teardown] section to ensure tests tear down properly
2021-12-29 15:10:49 +08:00
eeff
9972b4045e
Refactor functionality tests to import API resources conditionally
...
1. Add keyword Import Neuron API resource in common.resource, so that
when robotframework command line set:
1.1 `--variable neuron_api:http` will test using http api (default)
1.2 `--variable neuron_api:mqtt` will test using mqtt api
2. Add keyword Skip If Not Http API in common.resource, so that we
could run tests only meaningful for http.
3. Update test suites accordingly
2021-12-29 15:10:49 +08:00
eeff
26d843aa5d
Add MQTT library for functionality tests
2021-12-29 15:10:49 +08:00
eeff
b64e441114
Add mqtt api functionality tests resource
2021-12-29 15:10:49 +08:00
eeff
96c3bb4ddd
Add mqtt function code to functionality tests resource
2021-12-29 15:10:49 +08:00
eeff
32c289c5db
Fix mqtt api to return response when request json decode fails
2021-12-28 14:43:10 +08:00
eeff
81d7838656
Fix mqtt api NEU_MQTT_OP_GET_NODES error handling
...
1. When node type is NEU_NODE_TYPE_UNKNOWN, success vacuously
2. When node type is invalid, return NEU_ERR_PARAM_IS_WRONG
2021-12-27 22:51:01 +08:00
eeff
daee5c2592
Fix mqtt api read function
...
Fix mqtt plugin to check error code when handling NEU_MQTT_OP_READ,
so that the plugin could send back an error message.
2021-12-27 22:33:14 +08:00
eeff
f41559bd73
Fix mqtt api get node setting
...
Fix handling of NEU_MQTT_OP_GET_NODE_SETTING to return the setting.
2021-12-22 18:59:27 +08:00
zhanghongtong
f3b301272a
ci: update target event
2021-12-22 16:07:06 +08:00
eeff
bf8079ad18
Refactor functionality tests
...
1. Refactor group config api tests to use keywords from api resources
2. Refactor modbus tcp tests to use keywords from api resources
3. Refactor node api tests to use keywords from api resources
4. Refactor opcua tests to use keywords from api resources
5. Refactor tag api tests to use keywords from api resources
2021-12-21 18:56:33 +08:00
eeff
a5f78bfdac
Refactor functionality tests
...
1. Refactor http api keywords to be more functional
2. Move tag compare keywords to common.resource
2021-12-21 18:56:33 +08:00
eeff
f99b2363cd
Refactor functionality tests
...
Split neuron.robot into common.resource and api_http.resource
2021-12-21 18:56:33 +08:00
eeff
731a1570c4
Refactor functionality test
...
Remove grp_config_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff
13a65b9056
Refactor functionality tests
...
Remove node_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff
2426daa607
Refactor functionality tests
...
Remove tag_mqtt_test.robot
2021-12-21 18:56:33 +08:00
eeff
0b5f89f854
Refactor functionality tests
...
Rename simulator.robot to simulator.resource
2021-12-21 18:56:33 +08:00
eeff
30c1d0f04d
Refactor functionality tests
...
Rename error.robot to error.resource
2021-12-21 18:56:33 +08:00
Parker Liu
a7088140ad
Fix issue of it sometimes crashed when cycle read datatag in modbus tcp plugin
2.0.0-alpha.1.1
2021-12-17 11:20:39 +08:00
Parker Liu
4241829ce2
Add install step in CMakeLists.txt file for install neuron output files
2021-12-16 15:32:27 +08:00
gc87
e934239b5d
MQTT connection state update
2021-12-16 11:52:33 +08:00
zhanghongtong
5907ee1c5a
ci: fix upload release asset failed
2.0.0-alpha.1
2021-12-15 17:46:19 +08:00
zhanghongtong
4301e15ba6
ci: fix upload release asset failed
2021-12-15 17:18:50 +08:00
zhanghongtong
6236845c64
ci: fix upload release asset failed
2021-12-15 16:52:37 +08:00
eeff
d837ca94bf
Fix use-after-free in mqtt api GET_SUBSCRIBE_GROUP_CONFIG
2021-12-14 17:40:58 +08:00
zhanghongtong
1c0de36b62
ci: update release asset
2021-12-14 17:38:46 +08:00
lixiumei
311ae9f674
ft: format
2021-12-13 16:56:31 +08:00
lixiumei
2ec1640eaf
Fixing the configuration in the opcua function test
2021-12-13 16:35:22 +08:00
zhanghongtong
446d034868
ci: don't delete artifact when release
2021-12-13 11:44:09 +08:00