350 Commits

Author SHA1 Message Date
Viacheslav Klimov
3c1682f57a Merge branch 'master' into master-to-snmp
# Conflicts:
#	common/data/pom.xml
#	common/queue/src/main/java/org/thingsboard/server/queue/discovery/ZkDiscoveryService.java
#	dao/src/main/java/org/thingsboard/server/dao/sql/device/DeviceRepository.java
#	ui-ngx/src/app/shared/models/device.models.ts
2021-04-20 18:08:10 +03:00
ShvaykaD
321fb731a6
Support of server-side RPC requests via protobuf for CoAP and MQTT
* rpc response schema added

* rpc request proto

* fixed device profile validation

* fix error messages
2021-04-20 11:14:27 +03:00
nickAS21
51b0d50542
Lwm2m discovery (#4438)
* Lwm2m: fix bug delete zero updateAttribute

* Lwm2m: front add select binding

* Lwm2m: discovery only for test

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove type_cast_enabled from the main branch.

* Lwm2m: remove double code.
2021-04-20 10:44:11 +03:00
nickAS21
d6979e54da
lwm2m: back: Write Attributes - start (#4402)
* lwm2m: back: Write Attributes - start

* lwm2m: front: fis bug disable instances

* lwm2m: transport: attr/discavery start

* lwm2m: transport: attributeLwm2m after update profile

* lwm2m: transport: attributeLwm2m after update profile (no delete attribute)

* Lwm2m: back: test

* Lwm2m: back: test2

* Lwm2m: back: test3
2021-04-15 11:53:45 +03:00
Vladyslav_Prykhodko
e31a95619c UI: Added firmware autocomplete component; Add firmware to device and device profile 2021-04-13 15:10:13 +03:00
Viacheslav Klimov
a00e3be7ba Merge branch 'master' into master-to-develop-snmp
# Conflicts:
#	common/dao-api/src/main/java/org/thingsboard/server/dao/device/DeviceService.java
#	common/data/src/main/java/org/thingsboard/server/common/data/device/profile/DeviceProfileTransportConfiguration.java
#	common/transport/coap/src/main/java/org/thingsboard/server/transport/coap/CoapTransportService.java
#	common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/LwM2mTransportServiceImpl.java
#	common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/SessionMsgListener.java
#	dao/src/main/java/org/thingsboard/server/dao/device/DeviceDao.java
#	dao/src/main/java/org/thingsboard/server/dao/device/DeviceServiceImpl.java
#	pom.xml
2021-04-12 15:45:39 +03:00
nickAS21
c634859e90
lwm2m: front start add attributes Lwm2m (#4388)
* lwm2m: front start add attributes Lwm2m

* lwm2m: front finish add attributes Lwm2m for resources

* lwm2m: front add attributes Lwm2m for resources if isAttribte or isTelemetry

* lwm2m: front add attributes Lwm2m for objects if isAttribte or isTelemetry

* lwm2m: back add resource one

* lwm2m: back fix bug resource controller test
2021-04-12 13:16:43 +03:00
Volodymyr Babak
df6f4c9924 Merge remote-tracking branch 'upstream/master' into develop/3.3-edge 2021-04-09 19:04:26 +03:00
Volodymyr Babak
7044e3e40f Merge remote-tracking branch 'upstream/master' into develop/3.3-edge 2021-03-30 19:35:58 +03:00
nickAS21
23373b055e lwm2m: front fix bug profile updateObserve 2021-03-29 11:13:26 +03:00
nickAS21
8b23bd999f lwm2m: front fix bug create profile lwm2mConfig default 2021-03-27 07:37:58 +02:00
nickAS21
156c8cc287 lwm2m: front fix bug create profile lwm2mConfig 2021-03-26 16:34:20 +02:00
nickAS21
0710d272a1 lwm2m: front fix bug create device lwm2mConfig default 2021-03-26 12:34:36 +02:00
Andrii Shvaika
32e8ee11bd Merge with develop/3.3 2021-03-24 18:17:50 +02:00
nickAS21
bc21db007b
Lwm2m add resource fix (#4272)
* lwm2m: add objectKeyId to back and front profile

* lwm2m: front^ strategy - select

* lwm2m: back fix bag

* lwm2m: back fix bag2

* lwm2m: back fix bag3
2021-03-19 15:55:10 +02:00
Igor Kulikov
e17de056c2 Merge with master 2021-03-19 12:16:43 +02:00
nickAS21
0aad16c599 lwm2m: front^ strategy - select 2021-03-19 11:28:40 +02:00
nickAS21
201476f912 lwm2m: add objectKeyId to back and front profile 2021-03-19 11:28:40 +02:00
Igor Kulikov
1e8fc7086b Device profile import/export support 2021-03-19 10:07:26 +02:00
Igor Kulikov
3ed49e3f02 Add timezone support for timewindow 2021-03-17 18:38:57 +02:00
ShvaykaD
c5c8fbd3f7
[3.2.2] [WIP] coap transport (#4239)
* init CoapDeviceProfile & added ui components

* added transport payload type configuration for default coap device type

* added AbstractCoapTransportResource & updated efento resource

* fixed coap device profile save & update

* fixed Attribute Updates notifications

* revert CoapOkCallback onSuccess changes

* updated provision request to handle proto payload type

* fix license

* updated Rpc subscribe/unsubscribe action

* add more device emulator clients

* added fix for Coap Transport: ability to handle requests with oneElementUriPaths and MultiElementUriPaths

* fix TbCoapServer implementation

* changed response type to CREATED in POST requests

* improved implementation

* fix typos

* minor bug-fixes & improvements

* fix TbCoapServerMessageDeliverer class

* improved relay sensor implementation

* added tests for CoAP transport\

* fix typo

* removed nosql tests

* fix coap endpoint creation & improved getAttributes tests

* transport tests refactoring
2021-03-15 18:18:45 +02:00
Viacheslav Klimov
44c1cbcbc0 Merge remote-tracking branch 'thingsboard/develop/3.3' into develop/snmp
# Conflicts:
#	application/pom.xml
#	application/src/main/resources/thingsboard.yml
#	common/transport/pom.xml
#	msa/transport/pom.xml
#	pom.xml
#	transport/pom.xml
#	ui-ngx/src/app/modules/home/components/home-components.module.ts
#	ui-ngx/src/app/modules/home/components/profile/device/device-profile-transport-configuration.component.html
#	ui-ngx/src/app/shared/models/device.models.ts
2021-03-10 15:22:03 +02:00
vkukhtyn
5a72479951
[WIP] SNMP initial implementation (#3755)
* Add SNMP type to transport profiles

* Update reference config for transport profiles

* Initial implementation to retrieve a value using SNMP GET message

* Fix license header

* Move config files

* Use async handler for SNMP response

* Send SNMP agent response to attributes and telemetry

* UI: add SNMP option for device profile

* UI: use JSON field to set SNMP profile configuration

* Handle device profile update event

* Use concurrent hash map for SNMP device sessions

* UI: Add device transport configuration control

* Cancel async request to avoid memory leak and timeout handling

* Start SNMP pooling after application started

* Move OID per profile mapping to SNMP transport context

* Fix build after merge with 3.2.1-SNAPSHOT

* Init device sessions on TB start

* Fix build error, refactoring

* Update session context on device update

* Set device info on session context creating

* Refresh pooling params on device or profile update

* Update license header

* Process device and profile transport config update

* Process SNMP response asynchronously

* Change polling implementation
2021-03-10 14:56:25 +02:00
nickAS21
3f4714c2ce
Lwm2m strategy (#4210)
* Lwm2m:  back: two strategy

* Lwm2m:  back: add new models

* Lwm2m:  back: del new models
2021-03-05 17:40:13 +02:00
nickAS21
03b647c525 Lwm2m: front: validateObject on the start fix bug 2021-03-04 17:19:07 +02:00
nickAS21
dc8370c859 Lwm2m: front: validateObject on the start 2021-03-03 17:18:49 +02:00
nickAS21
9c3bf2063b Lwm2m: front fix bug: config profile -> add object if list empty 2021-02-23 11:28:07 +02:00
nickAS21
d2469420ad Lwm2m: front add validator json for security config device 2021-02-22 14:36:33 +02:00
nickAS21
b864680b81 Lwm2m: back: start DTLS -one server 4 security 2021-02-19 13:04:17 +02:00
nickAS21
9552ab0589 Lwm2m: front: fix bug PR 2021-02-08 17:21:36 +02:00
nickAS21
ade09738eb Lwm2m: back: add key to profile - refactoring-light start2 2021-02-08 17:21:36 +02:00
nickAS21
c230e3fdcd Lwm2m: front: add key to profile - refactoring-light start2 2021-02-08 17:21:36 +02:00
nickAS21
793e43e9a8 Lwm2m: front: add key to profile - refactoring-light start 2021-02-08 17:21:36 +02:00
nickAS21
d56c33ddb1 Lwm2m: front: refactoring 2021-01-29 12:44:31 +02:00
nickAS21
4382c0c4b8 Lwm2m: front: fix bug2 updateObserve...ToJson 2021-01-29 09:05:53 +02:00
nickAS21
e32e90932b Lwm2m: front: fix bug updateObserve...ToJson 2021-01-28 19:27:24 +02:00
nickAS21
ac89b188f2 Lwm2m: front: fix any bug 2021-01-28 16:53:13 +02:00
Vladyslav_Prykhodko
2b47fe9202 Updated license header 2021-01-27 13:38:12 +02:00
Vladyslav_Prykhodko
d5c3f4c997 Merge master in develop/3.3 2021-01-27 13:31:46 +02:00
nickAS21
5f3cf1e3a2 Lwm2m: front: update filter for keyName 2021-01-26 22:10:26 +02:00
Vladyslav_Prykhodko
c14e2c81b1 UI: Refactoring LwM2M 2021-01-26 19:20:36 +02:00
nickAS21
f770f40797 Lwm2m: front: update filter for models 2021-01-26 14:40:32 +02:00
Vladyslav_Prykhodko
ca940ba1b6 UI: Refactoring LwM2M 2021-01-25 19:54:01 +02:00
nickAS21
a8e093910a Lwm2m: back&front: update filter for objectIds 2021-01-25 15:57:09 +02:00
Vladyslav_Prykhodko
de77c53fcc UI: Refactoring LwM2M 2021-01-22 16:14:39 +02:00
nickAS21
fa8df68207 Lwm2m: front: refactoring5 2021-01-22 14:46:55 +02:00
Vladyslav_Prykhodko
15abe85b74 UI: Refactoring LwM2M 2021-01-21 18:21:55 +02:00
nickAS21
573837c4b1 Lwm2m: front: refactoring sort json and add instances 2021-01-21 17:38:45 +02:00
nickAS21
e6d4e91e25 Lwm2m: front: refactoring n number validators 2021-01-20 19:17:13 +02:00
Vladyslav_Prykhodko
e6a3ee2725 UI: Refactoring lwm2m 2021-01-20 16:19:58 +02:00