423 Commits

Author SHA1 Message Date
Viacheslav Klimov
593f95a7af
Provide additional validation for entities (#4326)
* Provide additional validation for entities

* Refactor

* Create test for NoXssValidator

* Refactor dependencies
2021-03-30 18:29:55 +03: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
Igor Kulikov
71062f64df New widget selector backend support 2021-03-05 17:08:46 +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
Andrii Shvaika
f8d1fff4cc New Alias 2021-03-02 12:06:50 +02:00
Andrii Shvaika
3176c208a8 Data structures 2021-03-01 14:47:50 +02:00
Andrii Shvaika
3cd964327a Constant filters for device profile 2021-02-26 19:26:31 +02:00
vzikratyi
29fd4fb02c Save Attributes to cache 2021-02-25 10:42:24 +02:00
Vladyslav_Prykhodko
989b6e7a30 Merge branch 'master' 2021-02-23 18:01:04 +02:00
Andrew Volostnykh
6bc902756b Code cleaning after review 2021-02-16 17:04:23 +02:00
Andrew Volostnykh
e70df09b08 Code cleaning and fix of tests 2021-02-16 17:04:23 +02:00
Andrew Volostnykh
6bf2b322af Test and some code cleaning 2021-02-16 17:04:23 +02:00
Andrew Volostnykh
e93c975a01 Compound with front-end, fix of incorrect getter use 2021-02-16 17:04:23 +02:00
AndrewVolosytnykhThingsboard
77de9da2a8 DynamicValue: Rename 'useInherit' to correct name 'inheritMode' 2021-02-16 17:04:23 +02:00
AndrewVolosytnykhThingsboard
1c78a59fb2 Logic for inheritance in DynamicValue added 2021-02-16 17:04:23 +02:00
Andrii Shvaika
dac7c5250f Improvements to the DeviceStateService 2021-02-12 15:40:54 +02:00
Viacheslav Kukhtyn
c4b1f9ea7a Process alarms on activity and inactivity events when device state is persisted to telemetry 2021-02-12 15:40:54 +02:00
Vladyslav_Prykhodko
ca8f04e1e9 Merge remote-tracking branch 'upstream/master' into feature/dashboard/widget-select-preview 2021-02-10 18:42:13 +02:00
Igor Kulikov
3f83be21da Fix lombok config. Update base openjdk image 2021-02-05 14:28:26 +02:00
Igor Kulikov
22e5771120 JDK 11 Support 2021-02-04 19:31:20 +02:00
Vladyslav_Prykhodko
22a1d24291 Added to widgets bundles and widget functional preview and description 2021-02-04 19:00:28 +02:00
Igor Kulikov
3ea5314495 Home dashboard feature. Enable tooltips for flot chars in mobile mode. Disable widgets interaction in widget library and when adding widget to dashboard. 2021-02-03 12:21:55 +02:00
Igor Kulikov
61723da391 Version set to 3.3.0-SNAPSHOT 2021-01-26 10:17:52 +02:00
Igor Kulikov
d31358b2ea Update license header - set 2021 year 2021-01-11 13:42:16 +02:00
Viacheslav Kukhtyn
f1fb0cedae Add audit log details for telemetry deleted and telemetry updated types 2020-12-25 18:24:31 +02:00
Viacheslav Kukhtyn
9829dd17cc Merge branch 'master' into feature/log-telemetry-updated 2020-12-23 16:16:15 +02:00
Andrew Shvayka
24ccd2a2b5 Revert "[3.2.1] Develop/lwm2m (#3547)"
This reverts commit df6151f5ae8d3b77a67318dbb774d55e3f297960.
2020-12-09 17:11:50 +02:00
Andrew Shvayka
df6151f5ae
[3.2.1] Develop/lwm2m (#3547)
* LwM2M - Start transport

* LwM2M - Test endpoint

* LwM2M - Test endpoint

* LwM2M - Test add xml

* LwM2M device registration

* LwM2M - add get from client, add attributes and telemetry upgrade from registration client

* LwM2M - add get from client, add attributes and telemetry upgrade from registration client

* LwM2M implementation

* LwM2M - add to service telemetry and attribute

* LwM2M add to service attribute and telemetry

* LwM2M - add LWM2M_CREDENTIALS to DeviceCredentialsType

* LwM2M - add LWM2M_CREDENTIALS to DeviceCredentialsType

* LwM2M - add transport.process

* LwM2M - delete from yml tenantid, PSK -ok

* LwM2M - yml del tenantId

* LwM2M - add RPK

* LwM2M - add connect only x509 certificate. Crate certificates in serverKeyStore.jks and clientKeyStore.jks

* LwM2M - add no_sec

* LwM2M - add RPK & PSK integration test with app Client

* LwM2M - add RPK & PSK integration test with app Client

* LwM2M - add read JKS from file

* LwM2M - add read JKS from file

* LwM2M - add bootstrap cert

* LwM2M - add bootstrap RPK

* LwM2M - add bootstrap No_sec

* LwM2M - cleaned the code

* LwM2M - add to 3.0 in UI credentials lwm2m

* LwM2M - add to 3.0 in UI credentials lwm2m

* LwM2M - add to 3.0 in UI credentials lwm2m

* LwM2M - fix bug CoAP transport

* LwM2M: UI - add Json to credentials

* LwM2M: Back - add command "/3/0/5" - trigger client

* LwM2M: fix bug Json edit dialog

* LwM2M: fix bug Json edit dialog

* lwm2m: fix bug Json edit dialog: add validate

* lwm2m: UI add tabs

* lwm2m: UI add tabs (cleaner)

* lwm2m: add interface SecurityConfigModels

* lwm2m: add interface SecurityConfigModels2

* lwm2m: change html

* lwm2m: UI add bootstrap component

* lwm2m: UI add bootstrap component with FormControl

* lwm2m: UI add start Observe

* lwm2m: UI - correct

* lwm2m: UI - correct

* lwm2m: UI - add Validator: BS RPK, X509

* lwm2m: UI - add Observe

* lwm2m: UI - finish Observe

* lwm2m: UI - fix bug config-service update identity

* lwm2m: Bootstarp&Sewrver All config secure

* lwm2m: Bootstarp&Sewrver All config secure for new Front format

* lwm2m: Bootstarp&Sewrver Different config secure for new Front format

* lwm2m: Add attributes Gui and Backend

* lwm2m: Add attributes Gui and Backend final

* lwm2m: Add telemetrys to Gui

* lwm2m: Add Attribute & telemetry in Gui to instance

* lwm2m: Optimize Attr/Telemetry

* lwm2m: Optimize Attr/Telemetry

* lwm2m: Optimize Attr/Telemetry

* lwm2m: Optimize Attr/Telemetry for mobile

* lwm2m: Model folder

* lwm2m: Ok on AWS: NoSec, PSK, X509
bad registration - RPK

* lwm2m: KeyStore start only one

* lwm2m: Server observe ok

* lwm2m: Server fix bug finish session without remove

* lwm2m: Server add function installValue

* lwm2m: Server add function getAttrTelemetry to tingsboard

* lwm2m: Server add function installValue

* lwm2m: Server add function update Telemetry, Attr from observe

* lwm2m: Server add comments

* lwm2m: Server add session listener

* lwm2m: Server add onGetChangeCredentials with analyze

* lwm2m: Server add onGetChangeCredentials with analyze Onserve add

* lwm2m: Server: updated algorithm for analyzing dynamic changes in attributes / telemetry / observation

* lwm2m: fix bug:  "ngx-flowchart" compile

* lwm2m: get value resource OPAQUE - byte [] to HexString

* lwm2m: change path to base

* lwm2m: fix bug COAP & lwm2m

* Lwm2m_3_2: back: cleaner, test bootstrap-ok front: restore

* Lwm2m_3_2: back: del SynchronousRegistrationListener.java

* Lwm2m_3_2: front: start profile lwm2m UI

* Lwm2m_3_2: front&back: add to profile lwm2m (api, getModels...)

* Lwm2m_3_2: back: fix bug from commented front: add update change observe/attribute/telemetry to config json

* Lwm2m_3_2: back: fix bug from commented front: add update change observe/attribute/telemetry to config json (2)

* Lwm2m_3_2: back: fix bug from commented front: add update change observe/attribute/telemetry to config json (3)

* Lwm2m_3_2: back: fix bug from commented front: add update change observe/attribute/telemetry to config json (4)

* Lwm2m_3_2: front: add update change bootstrapConfig and save to config json

* Lwm2m_3_2: update after merge master

* lwm2m: fix bug proto

* lwm2m: fix bug in yml keyStore.jks

* lwm2m: fix bug tests

* lwm2m: front: add nameThingsboard

* lwm2m: fix bug Autowired lwm2mContext, caseCamel

* lwm2m: back-end^ start api /lwm2m/deviceProfile/bootstrap

* lwm2m: back-end: add method read models from resources

* lwm2m: back-end/front: add and finish api bootstrapConfig

* lwm2m: back-end: add decode profile

* lwm2m: back-end: add new bin in transport api

* lwm2m: add microservice lwm2m and docker lwm2m.

* lwm2m: add microservice lwm2m and docker lwm2m (fix bug)

* lwm2m: front: start fix bug disabled resources

* lwm2m: master to lwm2m merge, front add change attribute, telemetry

* lwm2m: front PR

* lwm2m: front add sort keyName to Json on the start

* lwm2m: front add instances

* lwm2m: front add/del instances FormGrp Value

* lwm2m: Merge remote-tracking branch 'origin/master' into develop/lwm2m
# Conflicts:
#	common/transport/mqtt/src/main/java/org/thingsboard/server/transport/mqtt/MqttTransportHandler.java
#	common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/SessionMsgListener.java
#	ui-ngx/src/app/modules/home/components/home-components.module.ts

* lwm2m: Merge remote-tracking branch 'origin/master' into develop/lwm2m

* lwm2m: Front: del sort after add/del instance

* lwm2m: Front: fix bug reindex FormArray after update

* Lwm2m: Front fix bug add/del instans

* Lwm2m: Front finish1 profile

* Lwm2m: Back add profile to ModelClient

* Lwm2m: Back add form profile sent thingsboard: attr/tel/observe

* Lwm2m: Back -> fix bug: serverKeyStore.jks] Unable to load KeyStore  files server

* Lwm2m: Back -> fix bug: onRegistered an unReg

* Lwm2m: Back -> add updateProfiles

* Lwm2m: Back -> add updateDevice and updateProfile dynamic

* Lwm2m: Back -> error if CoapCode not access

* Lwm2m: Front -> clear credential

* Lwm2m: Front ->  credential fix bug button "save"

* Lwm2m: Back ->  add telemetry logLwm2m

Co-authored-by: nickAS21 <nick@avalr.com.ua>
2020-12-09 17:09:16 +02:00
Andrii Shvaika
87a8cec7b5 Version set to 3.2.1-SNAPSHOT 2020-12-01 18:05:47 +02:00
Andrii Shvaika
4e8b0aa674 Merge branch 'master' of github.com:thingsboard/thingsboard 2020-11-28 15:05:21 +02:00
Andrii Shvaika
458beede1a Default Storage TTL in Days 2020-11-28 15:05:11 +02:00
YevhenBondarenko
8f8814d167 moved sms configs to common package, rest client improvements 2020-11-27 12:03:22 +02:00
YevhenBondarenko
8515b6d6e0 alarm rules improvements 2020-11-25 18:19:33 +02:00
Andrii Shvaika
eb8975d504 SMS Email Limits 2020-11-20 18:02:09 +02:00
Andrii Shvaika
031f579bd6 Email notifications for API state 2020-11-20 15:45:09 +02:00
Andrii Shvaika
3feb32c0f6 Improvements to the templates 2020-11-20 15:45:09 +02:00
YevhenBondarenko
1c79480b33 created sendApiFeatureStateEmail 2020-11-20 15:45:09 +02:00
ShvaykaD
eecc6aa1a6 fix dynamic schemas, tests 2020-11-16 19:08:55 +02:00
Andrii Shvaika
706fd01d76 Device Profile Proto Improvement 2020-11-16 17:18:24 +02:00
ShvaykaD
861fd65109 merge with master 2020-11-13 16:33:41 +02:00
ShvaykaD
4a18781304 added TransportPayloadTypeConfiguration, fix tests, ui 2020-11-13 16:19:40 +02:00
Viacheslav Kukhtyn
c03356e944 Merge branch 'master' into feature/log-telemetry-updated 2020-11-13 13:10:09 +02:00
YevhenBondarenko
ba1b000adb added maxCustomers, maxUsers, maxDashboards, maxRuleChains for TenantProfile 2020-11-13 11:55:31 +02:00
Andrii Shvaika
cb41548b22 Add cleanup of clear alarm state on non matching condition 2020-11-12 19:32:45 +02:00
ShvaykaD
18a57d638d merge with master 2020-11-11 18:25:29 +02:00
ShvaykaD
78c06be350 change protobuf-dynamic dependency 2020-11-11 16:00:04 +02:00
Viacheslav Kukhtyn
c3ee6785aa Merge branch 'master' into feature/log-telemetry-updated 2020-11-11 11:44:42 +02:00
Andrii Shvaika
ac866faab0 Improvements to the ApiUsageState 2020-11-10 16:19:44 +02:00
Andrii Shvaika
5f50fd44d2 Usage Records implementation 2020-11-09 14:06:20 +02:00