1383 Commits

Author SHA1 Message Date
Viacheslav Klimov
afab5150b8 Provide SNMP transport configuration validation; refactor 2021-03-24 16:43:28 +02:00
Viacheslav Klimov
0532d22d9d Refactor 2021-03-24 16:43:07 +02:00
nickAS21
367be12455
lwm2m: back transport clear cash (#4294)
* lwm2m: back transport clear cash

* lwm2m: back transport del old models

* lwm2m: back transport edit yml old models

* lwm2m: back transport remove lock

* lwm2m: back transport remove lock2
2021-03-24 15:58:27 +02:00
Yevhen Bondarenko
0d62b2890c
[3.3] added tests for resources (#4282)
* added TbResourceService test

* fix ResourceService test

* created TbResourceControllerSqlTest

* fixed BaseTbResourceServiceTest
2021-03-24 11:03:13 +02:00
nickAS21
7ea6c7163a
lwm2m: back transport newKey fix bug object id=19 (#4291) 2021-03-23 15:17:56 +02:00
Viacheslav Klimov
e5c4feaa83 Create assign/unassign device event when claiming/reclaiming device 2021-03-23 14:12:18 +02:00
nickAS21
4bc417456b
lwm2m: back transport newKey start (#4278)
* lwm2m: back transport newKey start

* lwm2m: back transport newKey start1

* lwm2m: back transport newKey fix bug save

* lwm2m: back transport newKey test All security - ok

* lwm2m: back transport newKey fix bug updateAttrShared
2021-03-23 10:09:41 +02:00
Viacheslav Klimov
8f2438d6ab
SNMP devices balancing (#4254)
* Fix merge errors

* Implement SNMP transports balancing

* Refactor; implement transport device cache

* Refactor

* Finish up device lifecycle handling implementing; refactor

* Refactor

* Change base image to thingsboard/openjdk11 for msa snmp transport

* Refactor

* Change transport services names to upper-case
2021-03-22 17:17:42 +02:00
YevhenBondarenko
ad7c314b24 TbResource extends SearchTextBased, created TbResourceInfo 2021-03-20 07:49:00 +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
201476f912 lwm2m: add objectKeyId to back and front profile 2021-03-19 11:28:40 +02:00
Viacheslav Klimov
22ada62f3b Fix outdated data in alarm clear event 2021-03-18 18:05:56 +02:00
Volodymyr Babak
30588388e2 Merge remote-tracking branch 'origin/develop/2.6-edge' into develop/3.3-edge 2021-03-17 09:58:04 +02:00
Volodymyr Babak
c71ba1f245 Fixed grpc over ssl 2021-03-17 09:36:49 +02:00
Volodymyr Babak
0f64b3764f Merge remote-tracking branch 'upstream/develop/3.3' into develop/3.3-edge 2021-03-16 16:59:15 +02:00
Andrii Shvaika
59f85f1cee Merge with master 2021-03-16 13:46:56 +02:00
Andrii Shvaika
b4184d014c Improvements to startTime and endTime for subscriptions 2021-03-16 13:46:12 +02:00
Igor Kulikov
48d1199b2b Fix deprecation warnings 2021-03-16 11:11:41 +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
bc6efa5e1e
[3.3] [PROD-685] Provide user's session expiration when his auth data is changed (#4201)
* Provide user's session expiration when his auth data is changed

* Provide mock TokenOutdatingService for dao tests

* Increase time gap when checking if token is outdated

* Add license header for TokenOutdatingTest

* Refactor tokens outdating functionality to events usage

* Reset tokens on front-end after changing password
2021-03-15 17:11:23 +02:00
Viacheslav Klimov
e30ec49d2b
[3.3] [PROD-806] Implement alarm condition metadata displaying (#4185)
* Implement alarm condition metadata displaying

* Refactor
2021-03-15 17:09:35 +02:00
Viacheslav Klimov
37b88908fd Fix merge errors 2021-03-15 12:43:42 +02:00
nickAS21
648e8ec262 lwm2m: add Lwm2m provider for models 2021-03-12 17:53:03 +02:00
nickAS21
d27c721bbf lwm2m: Merge branch 'develop/3.3' into add-models 2021-03-12 15:19:47 +02:00
Yevhen Bondarenko
43fe84a284
created TransportResourceCache (#4232)
* created TransportResourceCache

* return resource by sysadmin if not found by tenant in DefaultTransportApiService
2021-03-12 13:00:51 +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
Yevhen Bondarenko
e2dd5b96ae
added resource dao support (#4213)
* Version set to 3.3.0-SNAPSHOT

* added resource dao

* added resource support in transport lvl (get resources and "update", "delete" notifications)

* refactoring

* added resource table to hsql schema

* added check for models dir in InstallScripts

* added pageLink support to getResources
2021-03-09 19:45:28 +02:00
nickAS21
d8ea6ac37d Lwm2m: back: add tenantId and repositoryTenant - test3 2021-03-09 11:08:51 +02:00
nickAS21
447bf05b7b Lwm2m: back: add tenantId and repositoryTenant - test2 2021-03-08 19:24:33 +02:00
nickAS21
65f4ca5800 Lwm2m: back: add tenantId and repositoryTenant - test 2021-03-08 00:00:44 +02:00
YevhenBondarenko
616839a23c refactoring 2021-03-05 18:05:47 +02:00
YevhenBondarenko
937cd04abe Merge branch 'develop/3.3' of https://github.com/thingsboard/thingsboard into develop/3.3-lwm2m 2021-03-05 17:44:41 +02:00
YevhenBondarenko
bd3185a98f added resource support in transport lvl (get resources and "update", "delete" notifications) 2021-03-05 17:43:56 +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
Igor Kulikov
71062f64df New widget selector backend support 2021-03-05 17:08:46 +02:00
YevhenBondarenko
6438f6b0ee added resource dao 2021-03-04 18:32:28 +02:00
Igor Kulikov
8fe6c956c8 Version set to 3.3.0-SNAPSHOT. Code style improvements. 2021-03-04 12:37:38 +02:00
YevhenBondarenko
50d96fb49e Version set to 3.3.0-SNAPSHOT 2021-03-04 10:03:09 +02:00
nickAS21
675e552672
Lwm2m: back fix bug: shared attr & change observe in profile (#4175)
* Lwm2m:  back fix bug: shared attr & change observe in profile

* Lwm2m:  replace:  lwServer by leshanServer. Remove lwServer  from interface LwM2mTransportService

* Lwm2m:  californium ver 2.6.1

* Lwm2m:  californium ver 2.6.1

* Lwm2m:  Json clone
2021-03-03 18:18:56 +02:00
Andrew Shvayka
a3cb9724e3
Merge pull request #4191 from thingsboard/master
Merge master to develop 3.3
2021-03-03 15:57:51 +02:00
Volodymyr Babak
e96452cdcf Merge remote-tracking branch 'upstream/develop/3.3' into develop/3.3-edge 2021-03-03 15:18:38 +02:00
Vladyslav_Prykhodko
530c077b05 Merge remote-tracking branch 'upstream/master' into feature/dashboard/widget-select-preview 2021-03-03 15:03:06 +02:00
Igor Kulikov
3255eb9027 Version set to 3.2.2-SNAPSHOT 2021-03-03 12:02:06 +02:00
Igor Kulikov
18d0d36976 Merge branch 'feature/entity-count-api' 2021-03-02 17:56:16 +02:00
Andrii Shvaika
f8d1fff4cc New Alias 2021-03-02 12:06:50 +02:00
Volodymyr Babak
eec8bb0202 Introduced new configuration option 2021-03-01 16:13:50 +02:00
Volodymyr Babak
594a1290db Async timeout connector customizer. Refactoring 2021-03-01 16:13:50 +02:00
Andrii Shvaika
3176c208a8 Data structures 2021-03-01 14:47:50 +02:00