Commit Graph

66 Commits

Author SHA1 Message Date
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
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
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
fengzero fd07e7fd5c ft: modbus tcp read/write
modbus tcp server simulator
2021-11-29 12:17:33 +08:00
fengzero 1b66cf8ad0 default option for compiling is debug, and ut is turned on by default 2021-11-24 14:49:21 +08:00
fengzero 2daa9f03e8 Add function test for tag, node state, node ctl and
subscribe/unsubscribe
2021-11-18 16:24:13 +08:00
alvin1221 7d5522630d Support cross compile & Fix incompatible errors 2021-11-16 22:28:12 +08:00
alvin1221 438b8c2ff7 Adapt cross compile 2021-11-16 22:28:12 +08:00
fengzero abc05c63cd compile parser and schema in base 2021-11-03 01:58:15 +00:00
gc87 7e18d25d20 Modify the compilation configuration
Use libneuron-base in plugins
2021-11-02 18:07:49 +08:00
Parker Liu 0767be8347 Add definition of error codes 2021-10-25 18:34:35 +08:00
fengzero e738e41b5d Add api: get plugin schema & config node
check the param according to the schema
2021-10-25 18:33:28 +08:00
gc87 5bdf4a2802 Remove paho.mqtt.c client 2021-10-20 15:46:25 +08:00
Parker Liu 4ced4476a0 Fix build issue of not found openssl/rand.h 2021-10-18 10:04:52 +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 693d68e231 Remove uuid-dev dependency and use openssl random number generator to implement uuid v4 2021-10-09 18:40:55 +08:00
fengzero 662ae1ec2d refactor json parse
separate mqtt parameter decode/encode
2021-09-24 16:06:48 +08:00
fengzero 44f05110d2 refactor decode/encode json
decode buf to neu_data_val_t
encode neu_data_val_t to buf
compile yaml as a dynamic library
2021-09-22 10:12:50 +08:00
Parker Liu 1e7264f4a7 Add a standalone CMakeLists file for sample plugins 2021-09-16 11:50:31 +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 8df731b7ce Add a new data value type with serialize/deserialize function
* Add a structure for fixed array
* Add a structure for bytes
* Add unit test cases of neuron data type
2021-09-13 09:03:46 +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
fengzero bb4ebdd75e refactor api server, add datatag api
use different server process api and web
rename tags field
merge json read/write
2021-09-07 16:56:33 +08:00
fengzero 288175996c Add plugin cmd function
add NEU_REQRESP_GET_SELF_NODE_ID cmd
add get_datatags_table func
define neu_addt_str_t
fix compile warning
add magic number and check function in neu_plugin_common_t
2021-09-02 11:22:51 +08:00
fengzero fb14067105 Add http response function
refactor handle response
2021-09-01 15:13:15 +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 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
fengzero 7c0fb80928 Add login api
user management and jwt have not yet been implemented
2021-08-18 10:22:41 +08: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
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 64c35cda0b Add unit tests for json decode 2021-08-13 10:49:32 +08:00
fengzero e10dea4051 parse read/write 2021-08-12 15:59:14 +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
fengzero f38f049ebd refactor dependent libs 2021-08-09 09:30:55 +00: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 afea66195f wrap json encode/decode 2021-08-09 11:21:57 +08:00
Parker Liu ae47b8e9ce Add datatag manager and datatag group config 2021-08-06 18:31:51 +08:00
alvin1221 958d2e5e6e Add function to get absolute path 2021-08-06 15:59:55 +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