2018-10-04 16:36:46 +03:00
|
|
|
/**
|
2021-01-11 13:42:16 +02:00
|
|
|
* Copyright © 2016-2021 The Thingsboard Authors
|
2018-10-04 16:36:46 +03:00
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
|
*
|
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
*
|
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
syntax = "proto3";
|
2021-11-29 19:20:08 +02:00
|
|
|
|
2018-10-04 16:36:46 +03:00
|
|
|
package transport;
|
|
|
|
|
|
|
|
|
|
option java_package = "org.thingsboard.server.gen.transport";
|
|
|
|
|
option java_outer_classname = "TransportProtos";
|
|
|
|
|
|
2020-04-06 18:35:43 +03:00
|
|
|
message QueueInfo {
|
|
|
|
|
string name = 1;
|
|
|
|
|
string topic = 2;
|
|
|
|
|
int32 partitions = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-13 20:33:17 +02:00
|
|
|
/**
|
|
|
|
|
* Service Discovery Data Structures;
|
|
|
|
|
*/
|
|
|
|
|
message ServiceInfo {
|
|
|
|
|
string serviceId = 1;
|
|
|
|
|
repeated string serviceTypes = 2;
|
|
|
|
|
int64 tenantIdMSB = 3;
|
|
|
|
|
int64 tenantIdLSB = 4;
|
2020-04-06 18:35:43 +03:00
|
|
|
repeated QueueInfo ruleEngineQueues = 5;
|
2021-03-22 17:17:42 +02:00
|
|
|
repeated string transports = 6;
|
2020-03-13 20:33:17 +02:00
|
|
|
}
|
|
|
|
|
|
2018-10-04 16:36:46 +03:00
|
|
|
/**
|
2020-03-12 09:36:48 +02:00
|
|
|
* Transport Service Data Structures;
|
2018-10-04 16:36:46 +03:00
|
|
|
*/
|
|
|
|
|
message SessionInfoProto {
|
2020-03-12 14:37:38 +02:00
|
|
|
string nodeId = 1;
|
2018-10-10 13:06:07 +03:00
|
|
|
int64 sessionIdMSB = 2;
|
|
|
|
|
int64 sessionIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
int64 deviceIdMSB = 6;
|
|
|
|
|
int64 deviceIdLSB = 7;
|
2020-03-12 09:36:48 +02:00
|
|
|
string deviceName = 8;
|
|
|
|
|
string deviceType = 9;
|
2020-04-28 18:19:30 +03:00
|
|
|
int64 gwSessionIdMSB = 10;
|
|
|
|
|
int64 gwSessionIdLSB = 11;
|
2020-09-02 18:52:59 +03:00
|
|
|
int64 deviceProfileIdMSB = 12;
|
|
|
|
|
int64 deviceProfileIdLSB = 13;
|
2021-04-16 13:10:38 +03:00
|
|
|
int64 customerIdMSB = 14;
|
|
|
|
|
int64 customerIdLSB = 15;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum SessionEvent {
|
|
|
|
|
OPEN = 0;
|
|
|
|
|
CLOSED = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-09 14:16:08 +03:00
|
|
|
enum SessionType {
|
|
|
|
|
SYNC = 0;
|
|
|
|
|
ASYNC = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum KeyValueType {
|
|
|
|
|
BOOLEAN_V = 0;
|
|
|
|
|
LONG_V = 1;
|
|
|
|
|
DOUBLE_V = 2;
|
|
|
|
|
STRING_V = 3;
|
2020-02-14 19:18:18 +02:00
|
|
|
JSON_V = 4;
|
2018-10-09 14:16:08 +03:00
|
|
|
}
|
|
|
|
|
|
2020-09-18 16:11:49 +03:00
|
|
|
enum CredentialsType {
|
|
|
|
|
ACCESS_TOKEN = 0;
|
|
|
|
|
X509_CERTIFICATE = 1;
|
2020-10-08 16:51:28 +03:00
|
|
|
MQTT_BASIC = 2;
|
2020-12-13 16:55:48 +02:00
|
|
|
LWM2M_CREDENTIALS = 3;
|
2020-09-18 16:11:49 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-04 16:36:46 +03:00
|
|
|
message KeyValueProto {
|
|
|
|
|
string key = 1;
|
2018-10-09 14:16:08 +03:00
|
|
|
KeyValueType type = 2;
|
|
|
|
|
bool bool_v = 3;
|
|
|
|
|
int64 long_v = 4;
|
|
|
|
|
double double_v = 5;
|
|
|
|
|
string string_v = 6;
|
2020-02-14 19:18:18 +02:00
|
|
|
string json_v = 7;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-10 13:06:07 +03:00
|
|
|
message TsKvProto {
|
|
|
|
|
int64 ts = 1;
|
|
|
|
|
KeyValueProto kv = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-04 16:36:46 +03:00
|
|
|
message TsKvListProto {
|
|
|
|
|
int64 ts = 1;
|
|
|
|
|
repeated KeyValueProto kv = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-04 19:18:26 +03:00
|
|
|
message DeviceInfoProto {
|
2018-10-08 14:27:02 +03:00
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
int64 deviceIdMSB = 3;
|
|
|
|
|
int64 deviceIdLSB = 4;
|
|
|
|
|
string deviceName = 5;
|
|
|
|
|
string deviceType = 6;
|
|
|
|
|
string additionalInfo = 7;
|
2020-09-02 18:52:59 +03:00
|
|
|
int64 deviceProfileIdMSB = 8;
|
|
|
|
|
int64 deviceProfileIdLSB = 9;
|
2021-04-16 13:10:38 +03:00
|
|
|
int64 customerIdMSB = 10;
|
|
|
|
|
int64 customerIdLSB = 11;
|
2021-06-24 10:53:35 +03:00
|
|
|
string powerMode = 12;
|
2021-07-12 08:46:52 +03:00
|
|
|
int64 edrxCycle = 13;
|
2021-07-20 15:50:35 +03:00
|
|
|
int64 psmActivityTimer = 14;
|
|
|
|
|
int64 pagingTransmissionWindow = 15;
|
2018-10-04 19:18:26 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-04 16:36:46 +03:00
|
|
|
/**
|
2020-03-12 09:36:48 +02:00
|
|
|
* Transport Service Messages;
|
2018-10-04 16:36:46 +03:00
|
|
|
*/
|
|
|
|
|
message SessionEventMsg {
|
2018-10-10 13:06:07 +03:00
|
|
|
SessionType sessionType = 1;
|
|
|
|
|
SessionEvent event = 2;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PostTelemetryMsg {
|
2018-10-09 14:16:08 +03:00
|
|
|
repeated TsKvListProto tsKvList = 1;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message PostAttributeMsg {
|
2018-10-09 14:16:08 +03:00
|
|
|
repeated KeyValueProto kv = 1;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetAttributeRequestMsg {
|
2018-10-10 13:06:07 +03:00
|
|
|
int32 requestId = 1;
|
|
|
|
|
repeated string clientAttributeNames = 2;
|
|
|
|
|
repeated string sharedAttributeNames = 3;
|
2021-05-28 14:19:40 +03:00
|
|
|
bool onlyShared = 4;
|
2018-10-04 16:36:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetAttributeResponseMsg {
|
2018-10-10 13:06:07 +03:00
|
|
|
int32 requestId = 1;
|
|
|
|
|
repeated TsKvProto clientAttributeList = 2;
|
|
|
|
|
repeated TsKvProto sharedAttributeList = 3;
|
|
|
|
|
string error = 5;
|
2021-05-28 14:19:40 +03:00
|
|
|
bool sharedStateMsg = 6;
|
2018-10-04 19:18:26 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-10 15:20:08 +03:00
|
|
|
message AttributeUpdateNotificationMsg {
|
|
|
|
|
repeated TsKvProto sharedUpdated = 1;
|
|
|
|
|
repeated string sharedDeleted = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-04 19:18:26 +03:00
|
|
|
message ValidateDeviceTokenRequestMsg {
|
|
|
|
|
string token = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-08 17:33:58 +03:00
|
|
|
message ValidateDeviceX509CertRequestMsg {
|
|
|
|
|
string hash = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-10 17:17:42 +03:00
|
|
|
message ValidateBasicMqttCredRequestMsg {
|
|
|
|
|
string clientId = 1;
|
|
|
|
|
string userName = 2;
|
|
|
|
|
string password = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-08 17:33:58 +03:00
|
|
|
message ValidateDeviceCredentialsResponseMsg {
|
2018-10-04 19:18:26 +03:00
|
|
|
DeviceInfoProto deviceInfo = 1;
|
2018-10-15 15:53:06 +03:00
|
|
|
string credentialsBody = 2;
|
2020-09-02 18:52:59 +03:00
|
|
|
bytes profileBody = 3;
|
2018-10-04 19:18:26 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-11 19:29:21 +03:00
|
|
|
message GetOrCreateDeviceFromGatewayRequestMsg {
|
|
|
|
|
int64 gatewayIdMSB = 1;
|
|
|
|
|
int64 gatewayIdLSB = 2;
|
|
|
|
|
string deviceName = 3;
|
|
|
|
|
string deviceType = 4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetOrCreateDeviceFromGatewayResponseMsg {
|
|
|
|
|
DeviceInfoProto deviceInfo = 1;
|
2020-09-02 18:52:59 +03:00
|
|
|
bytes profileBody = 2;
|
2018-10-11 19:29:21 +03:00
|
|
|
}
|
|
|
|
|
|
2020-10-15 18:16:27 +03:00
|
|
|
message GetEntityProfileRequestMsg {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
2020-09-02 18:52:59 +03:00
|
|
|
}
|
|
|
|
|
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
message LwM2MRegistrationRequestMsg {
|
|
|
|
|
string tenantId = 1;
|
|
|
|
|
string endpoint = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LwM2MRegistrationResponseMsg {
|
|
|
|
|
DeviceInfoProto deviceInfo = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LwM2MRequestMsg {
|
|
|
|
|
LwM2MRegistrationRequestMsg registrationMsg = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LwM2MResponseMsg {
|
|
|
|
|
LwM2MRegistrationResponseMsg registrationMsg = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-12 13:00:51 +02:00
|
|
|
message GetResourceRequestMsg {
|
2021-03-09 19:45:28 +02:00
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
string resourceType = 3;
|
2021-03-19 20:14:17 +02:00
|
|
|
string resourceKey = 4;
|
2021-03-09 19:45:28 +02:00
|
|
|
}
|
|
|
|
|
|
2021-03-12 13:00:51 +02:00
|
|
|
message GetResourceResponseMsg {
|
|
|
|
|
bytes resource = 1;
|
2021-03-09 19:45:28 +02:00
|
|
|
}
|
|
|
|
|
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
message ValidateDeviceLwM2MCredentialsRequestMsg {
|
|
|
|
|
string credentialsId = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ToTransportUpdateCredentialsProto {
|
|
|
|
|
repeated string credentialsId = 1;
|
|
|
|
|
repeated string credentialsValue = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetTenantRoutingInfoRequestMsg {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetTenantRoutingInfoResponseMsg {
|
|
|
|
|
bool isolatedTbCore = 1;
|
|
|
|
|
bool isolatedTbRuleEngine = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetDeviceProfileRequestMsg {
|
|
|
|
|
int64 profileIdMSB = 1;
|
|
|
|
|
int64 profileIdLSB = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-15 18:16:27 +03:00
|
|
|
message GetEntityProfileResponseMsg {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
bytes data = 2;
|
2020-10-22 15:56:31 +03:00
|
|
|
bytes apiState = 3;
|
2020-09-02 18:52:59 +03:00
|
|
|
}
|
|
|
|
|
|
2021-03-22 17:17:42 +02:00
|
|
|
message GetDeviceRequestMsg {
|
|
|
|
|
int64 deviceIdMSB = 1;
|
|
|
|
|
int64 deviceIdLSB = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetDeviceResponseMsg {
|
|
|
|
|
int64 deviceProfileIdMSB = 1;
|
|
|
|
|
int64 deviceProfileIdLSB = 2;
|
|
|
|
|
bytes deviceTransportConfiguration = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetDeviceCredentialsRequestMsg {
|
|
|
|
|
int64 deviceIdMSB = 1;
|
|
|
|
|
int64 deviceIdLSB = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetDeviceCredentialsResponseMsg {
|
|
|
|
|
bytes deviceCredentialsData = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetSnmpDevicesRequestMsg {
|
2021-04-27 15:14:35 +03:00
|
|
|
int32 page = 1;
|
|
|
|
|
int32 pageSize = 2;
|
2021-03-22 17:17:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetSnmpDevicesResponseMsg {
|
|
|
|
|
repeated string ids = 1;
|
2021-04-27 15:14:35 +03:00
|
|
|
bool hasNextPage = 2;
|
2021-03-22 17:17:42 +02:00
|
|
|
}
|
|
|
|
|
|
2020-10-15 18:16:27 +03:00
|
|
|
message EntityUpdateMsg {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
bytes data = 2;
|
2020-09-02 18:52:59 +03:00
|
|
|
}
|
|
|
|
|
|
2020-10-15 18:16:27 +03:00
|
|
|
message EntityDeleteMsg {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
2020-09-11 12:14:57 +03:00
|
|
|
}
|
|
|
|
|
|
2021-03-09 19:45:28 +02:00
|
|
|
message ResourceUpdateMsg {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
string resourceType = 3;
|
2021-03-19 20:14:17 +02:00
|
|
|
string resourceKey = 4;
|
2021-03-09 19:45:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ResourceDeleteMsg {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
string resourceType = 3;
|
2021-03-19 20:14:17 +02:00
|
|
|
string resourceKey = 4;
|
2021-03-09 19:45:28 +02:00
|
|
|
}
|
|
|
|
|
|
2018-10-09 14:16:08 +03:00
|
|
|
message SessionCloseNotificationProto {
|
|
|
|
|
string message = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-10 15:20:08 +03:00
|
|
|
message SubscribeToAttributeUpdatesMsg {
|
|
|
|
|
bool unsubscribe = 1;
|
2021-06-03 08:21:23 +03:00
|
|
|
SessionType sessionType = 2;
|
2018-10-10 15:20:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SubscribeToRPCMsg {
|
|
|
|
|
bool unsubscribe = 1;
|
2021-06-03 08:21:23 +03:00
|
|
|
SessionType sessionType = 2;
|
2018-10-10 15:20:08 +03:00
|
|
|
}
|
|
|
|
|
|
2021-06-22 16:21:56 +03:00
|
|
|
message SendPendingRPCMsg {
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-11 14:04:16 +03:00
|
|
|
message ToDeviceRpcRequestMsg {
|
|
|
|
|
int32 requestId = 1;
|
|
|
|
|
string methodName = 2;
|
|
|
|
|
string params = 3;
|
2021-05-27 18:07:06 +03:00
|
|
|
int64 expirationTime = 4;
|
|
|
|
|
int64 requestIdMSB = 5;
|
|
|
|
|
int64 requestIdLSB = 6;
|
2021-06-11 11:10:06 +03:00
|
|
|
bool oneway = 7;
|
|
|
|
|
bool persisted = 8;
|
2018-10-11 14:04:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ToDeviceRpcResponseMsg {
|
|
|
|
|
int32 requestId = 1;
|
|
|
|
|
string payload = 2;
|
2021-07-26 15:57:27 +03:00
|
|
|
string error = 3;
|
2018-10-11 14:04:16 +03:00
|
|
|
}
|
|
|
|
|
|
2021-07-23 13:27:05 +03:00
|
|
|
message UplinkNotificationMsg {
|
|
|
|
|
int64 uplinkTs = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-18 09:56:57 +03:00
|
|
|
message ToDeviceRpcResponseStatusMsg {
|
2021-06-11 11:10:06 +03:00
|
|
|
int32 requestId = 1;
|
|
|
|
|
int64 requestIdMSB = 2;
|
|
|
|
|
int64 requestIdLSB = 3;
|
|
|
|
|
string status = 4;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-11 14:04:16 +03:00
|
|
|
message ToServerRpcRequestMsg {
|
|
|
|
|
int32 requestId = 1;
|
|
|
|
|
string methodName = 2;
|
|
|
|
|
string params = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ToServerRpcResponseMsg {
|
|
|
|
|
int32 requestId = 1;
|
|
|
|
|
string payload = 2;
|
|
|
|
|
string error = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-27 10:00:17 +03:00
|
|
|
message ClaimDeviceMsg {
|
|
|
|
|
int64 deviceIdMSB = 1;
|
|
|
|
|
int64 deviceIdLSB = 2;
|
|
|
|
|
string secretKey = 3;
|
|
|
|
|
int64 durationMs = 4;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-18 16:11:49 +03:00
|
|
|
message DeviceCredentialsProto {
|
|
|
|
|
int64 deviceIdMSB = 1;
|
|
|
|
|
int64 deviceIdLSB = 2;
|
|
|
|
|
CredentialsType credentialsType = 3;
|
|
|
|
|
string credentialsId = 4;
|
|
|
|
|
string credentialsValue = 5;
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-08 15:08:29 +03:00
|
|
|
message CredentialsDataProto {
|
|
|
|
|
ValidateDeviceTokenRequestMsg validateDeviceTokenRequestMsg = 1;
|
|
|
|
|
ValidateDeviceX509CertRequestMsg validateDeviceX509CertRequestMsg = 2;
|
|
|
|
|
ValidateBasicMqttCredRequestMsg validateBasicMqttCredRequestMsg = 3;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-18 16:11:49 +03:00
|
|
|
message ProvisionDeviceRequestMsg {
|
|
|
|
|
string deviceName = 1;
|
2020-10-08 15:08:29 +03:00
|
|
|
CredentialsType credentialsType = 2;
|
2020-10-01 12:23:12 +03:00
|
|
|
ProvisionDeviceCredentialsMsg provisionDeviceCredentialsMsg = 3;
|
2020-10-08 15:08:29 +03:00
|
|
|
CredentialsDataProto credentialsDataProto = 4;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-18 16:11:49 +03:00
|
|
|
message ProvisionDeviceCredentialsMsg {
|
|
|
|
|
string provisionDeviceKey = 1;
|
|
|
|
|
string provisionDeviceSecret = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ProvisionDeviceResponseMsg {
|
2021-04-21 19:56:09 +03:00
|
|
|
ResponseStatus status = 1;
|
2020-11-13 16:04:15 +02:00
|
|
|
CredentialsType credentialsType = 2;
|
|
|
|
|
string credentialsValue = 3;
|
2020-09-18 16:11:49 +03:00
|
|
|
}
|
|
|
|
|
|
2021-04-21 19:56:09 +03:00
|
|
|
enum ResponseStatus {
|
2020-10-06 17:17:50 +03:00
|
|
|
UNKNOWN = 0;
|
|
|
|
|
SUCCESS = 1;
|
|
|
|
|
NOT_FOUND = 2;
|
|
|
|
|
FAILURE = 3;
|
2020-09-18 16:11:49 +03:00
|
|
|
}
|
2021-04-21 19:56:09 +03:00
|
|
|
|
2021-05-31 16:43:33 +03:00
|
|
|
message GetOtaPackageRequestMsg {
|
2021-04-21 19:56:09 +03:00
|
|
|
int64 deviceIdMSB = 1;
|
|
|
|
|
int64 deviceIdLSB = 2;
|
|
|
|
|
int64 tenantIdMSB = 3;
|
|
|
|
|
int64 tenantIdLSB = 4;
|
2021-04-30 10:52:07 +03:00
|
|
|
string type = 5;
|
2021-04-21 19:56:09 +03:00
|
|
|
}
|
|
|
|
|
|
2021-05-31 16:43:33 +03:00
|
|
|
message GetOtaPackageResponseMsg {
|
2021-04-21 19:56:09 +03:00
|
|
|
ResponseStatus responseStatus = 1;
|
2021-05-31 16:43:33 +03:00
|
|
|
int64 otaPackageIdMSB = 2;
|
|
|
|
|
int64 otaPackageIdLSB = 3;
|
2021-04-28 12:44:57 +03:00
|
|
|
string type = 4;
|
|
|
|
|
string title = 5;
|
|
|
|
|
string version = 6;
|
|
|
|
|
string contentType = 7;
|
|
|
|
|
string fileName = 8;
|
2021-04-21 19:56:09 +03:00
|
|
|
}
|
|
|
|
|
|
2020-03-12 09:36:48 +02:00
|
|
|
//Used to report session state to tb-Service and persist this state in the cache on the tb-Service level.
|
2018-10-28 16:10:16 +02:00
|
|
|
message SubscriptionInfoProto {
|
|
|
|
|
int64 lastActivityTime = 1;
|
|
|
|
|
bool attributeSubscription = 2;
|
|
|
|
|
bool rpcSubscription = 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SessionSubscriptionInfoProto {
|
|
|
|
|
SessionInfoProto sessionInfo = 1;
|
|
|
|
|
SubscriptionInfoProto subscriptionInfo = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message DeviceSessionsCacheEntry {
|
|
|
|
|
repeated SessionSubscriptionInfoProto sessions = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-09 14:16:08 +03:00
|
|
|
message TransportToDeviceActorMsg {
|
|
|
|
|
SessionInfoProto sessionInfo = 1;
|
|
|
|
|
SessionEventMsg sessionEvent = 2;
|
2020-03-12 09:36:48 +02:00
|
|
|
GetAttributeRequestMsg getAttributes = 3;
|
|
|
|
|
SubscribeToAttributeUpdatesMsg subscribeToAttributes = 4;
|
|
|
|
|
SubscribeToRPCMsg subscribeToRPC = 5;
|
2021-06-22 18:08:02 +03:00
|
|
|
ToDeviceRpcResponseMsg toDeviceRPCCallResponse = 6;
|
|
|
|
|
SubscriptionInfoProto subscriptionInfo = 7;
|
|
|
|
|
ClaimDeviceMsg claimDevice = 8;
|
|
|
|
|
ProvisionDeviceRequestMsg provisionDevice = 9;
|
2021-08-18 09:56:57 +03:00
|
|
|
ToDeviceRpcResponseStatusMsg rpcResponseStatusMsg = 10;
|
2021-06-22 18:08:02 +03:00
|
|
|
SendPendingRPCMsg sendPendingRPC = 11;
|
2021-07-23 13:27:05 +03:00
|
|
|
UplinkNotificationMsg uplinkNotificationMsg = 12;
|
2020-03-12 09:36:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TransportToRuleEngineMsg {
|
|
|
|
|
SessionInfoProto sessionInfo = 1;
|
|
|
|
|
PostTelemetryMsg postTelemetry = 2;
|
|
|
|
|
PostAttributeMsg postAttributes = 3;
|
|
|
|
|
ToDeviceRpcResponseMsg toDeviceRPCCallResponse = 4;
|
|
|
|
|
ToServerRpcRequestMsg toServerRPCCallRequest = 5;
|
2018-10-09 14:16:08 +03:00
|
|
|
}
|
|
|
|
|
|
2020-03-20 18:00:57 +02:00
|
|
|
/**
|
|
|
|
|
* TB Core Data Structures
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
message TbSubscriptionProto {
|
|
|
|
|
string serviceId = 1;
|
|
|
|
|
string sessionId = 2;
|
|
|
|
|
int32 subscriptionId = 3;
|
|
|
|
|
string entityType = 4;
|
|
|
|
|
int64 tenantIdMSB = 5;
|
|
|
|
|
int64 tenantIdLSB = 6;
|
|
|
|
|
int64 entityIdMSB = 7;
|
|
|
|
|
int64 entityIdLSB = 8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbTimeSeriesSubscriptionProto {
|
|
|
|
|
TbSubscriptionProto sub = 1;
|
|
|
|
|
bool allKeys = 2;
|
|
|
|
|
repeated TbSubscriptionKetStateProto keyStates = 3;
|
|
|
|
|
int64 startTime = 4;
|
|
|
|
|
int64 endTime = 5;
|
2021-03-16 13:46:12 +02:00
|
|
|
bool latestValues = 6;
|
2020-03-20 18:00:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbAttributeSubscriptionProto {
|
|
|
|
|
TbSubscriptionProto sub = 1;
|
|
|
|
|
bool allKeys = 2;
|
|
|
|
|
repeated TbSubscriptionKetStateProto keyStates = 3;
|
|
|
|
|
string scope = 4;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-10 15:35:49 +03:00
|
|
|
message TbAlarmSubscriptionProto {
|
|
|
|
|
TbSubscriptionProto sub = 1;
|
|
|
|
|
int64 ts = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-20 18:00:57 +02:00
|
|
|
message TbSubscriptionUpdateProto {
|
|
|
|
|
string sessionId = 1;
|
|
|
|
|
int32 subscriptionId = 2;
|
|
|
|
|
int32 errorCode = 3;
|
|
|
|
|
string errorMsg = 4;
|
|
|
|
|
repeated TbSubscriptionUpdateValueListProto data = 5;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-10 15:35:49 +03:00
|
|
|
message TbAlarmSubscriptionUpdateProto {
|
|
|
|
|
string sessionId = 1;
|
|
|
|
|
int32 subscriptionId = 2;
|
|
|
|
|
int32 errorCode = 3;
|
|
|
|
|
string errorMsg = 4;
|
|
|
|
|
string alarm = 5;
|
|
|
|
|
bool deleted = 6;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-20 18:00:57 +02:00
|
|
|
message TbAttributeUpdateProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
string scope = 6;
|
|
|
|
|
repeated TsKvProto data = 7;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-10 15:35:49 +03:00
|
|
|
message TbAlarmUpdateProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
string alarm = 6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbAlarmDeleteProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
string alarm = 6;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-26 11:46:12 +03:00
|
|
|
message TbAttributeDeleteProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
string scope = 6;
|
|
|
|
|
repeated string keys = 7;
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-14 09:12:25 +02:00
|
|
|
message TbTimeSeriesDeleteProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
repeated string keys = 6;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-20 18:00:57 +02:00
|
|
|
message TbTimeSeriesUpdateProto {
|
|
|
|
|
string entityType = 1;
|
|
|
|
|
int64 entityIdMSB = 2;
|
|
|
|
|
int64 entityIdLSB = 3;
|
|
|
|
|
int64 tenantIdMSB = 4;
|
|
|
|
|
int64 tenantIdLSB = 5;
|
|
|
|
|
repeated TsKvProto data = 6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbSubscriptionCloseProto {
|
|
|
|
|
string sessionId = 1;
|
|
|
|
|
int32 subscriptionId = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbSubscriptionKetStateProto {
|
|
|
|
|
string key = 1;
|
|
|
|
|
int64 ts = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbSubscriptionUpdateValueListProto {
|
|
|
|
|
string key = 1;
|
2021-11-29 19:20:08 +02:00
|
|
|
repeated TbSubscriptionUpdateTsValue tsValue = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message TbSubscriptionUpdateTsValue {
|
|
|
|
|
int64 ts = 1;
|
|
|
|
|
optional string value = 2;
|
2020-03-20 18:00:57 +02:00
|
|
|
}
|
|
|
|
|
|
2020-03-17 18:38:09 +02:00
|
|
|
/**
|
|
|
|
|
* TB Core to TB Core messages
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
message DeviceStateServiceMsgProto {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
int64 deviceIdMSB = 3;
|
|
|
|
|
int64 deviceIdLSB = 4;
|
|
|
|
|
bool added = 5;
|
|
|
|
|
bool updated = 6;
|
|
|
|
|
bool deleted = 7;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-20 18:00:57 +02:00
|
|
|
message SubscriptionMgrMsgProto {
|
|
|
|
|
TbTimeSeriesSubscriptionProto telemetrySub = 1;
|
|
|
|
|
TbAttributeSubscriptionProto attributeSub = 2;
|
|
|
|
|
TbSubscriptionCloseProto subClose = 3;
|
|
|
|
|
TbTimeSeriesUpdateProto tsUpdate = 4;
|
|
|
|
|
TbAttributeUpdateProto attrUpdate = 5;
|
2020-06-26 11:46:12 +03:00
|
|
|
TbAttributeDeleteProto attrDelete = 6;
|
2020-07-10 15:35:49 +03:00
|
|
|
TbAlarmSubscriptionProto alarmSub = 7;
|
|
|
|
|
TbAlarmUpdateProto alarmUpdate = 8;
|
|
|
|
|
TbAlarmDeleteProto alarmDelete = 9;
|
2021-12-14 09:12:25 +02:00
|
|
|
TbTimeSeriesDeleteProto tsDelete = 10;
|
2020-03-20 18:00:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LocalSubscriptionServiceMsgProto {
|
|
|
|
|
TbSubscriptionUpdateProto subUpdate = 1;
|
2020-07-10 15:35:49 +03:00
|
|
|
TbAlarmSubscriptionUpdateProto alarmSubUpdate = 2;
|
2020-03-20 18:00:57 +02:00
|
|
|
}
|
|
|
|
|
|
2020-03-25 22:11:47 +02:00
|
|
|
message FromDeviceRPCResponseProto {
|
|
|
|
|
int64 requestIdMSB = 1;
|
|
|
|
|
int64 requestIdLSB = 2;
|
|
|
|
|
string response = 3;
|
|
|
|
|
int32 error = 4;
|
|
|
|
|
}
|
2020-09-02 18:52:59 +03:00
|
|
|
|
2020-06-14 22:24:25 +03:00
|
|
|
message EdgeNotificationMsgProto {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
2020-06-18 18:57:01 +03:00
|
|
|
int64 edgeIdMSB = 3;
|
|
|
|
|
int64 edgeIdLSB = 4;
|
2020-09-18 17:32:04 +03:00
|
|
|
string type = 5;
|
|
|
|
|
string action = 6;
|
2020-06-18 18:57:01 +03:00
|
|
|
int64 entityIdMSB = 7;
|
|
|
|
|
int64 entityIdLSB = 8;
|
|
|
|
|
string entityType = 9;
|
2020-09-18 17:32:04 +03:00
|
|
|
string body = 10;
|
2020-06-18 18:57:01 +03:00
|
|
|
PostTelemetryMsg postTelemetryMsg = 11;
|
|
|
|
|
PostAttributeMsg postAttributesMsg = 12;
|
2020-06-14 22:24:25 +03:00
|
|
|
}
|
|
|
|
|
|
2018-10-05 18:52:59 +03:00
|
|
|
/**
|
|
|
|
|
* Main messages;
|
|
|
|
|
*/
|
|
|
|
|
|
2020-03-12 09:36:48 +02:00
|
|
|
/* Request from Transport Service to ThingsBoard Core Service */
|
2018-10-05 18:52:59 +03:00
|
|
|
message TransportApiRequestMsg {
|
2020-03-20 18:00:57 +02:00
|
|
|
ValidateDeviceTokenRequestMsg validateTokenRequestMsg = 1;
|
|
|
|
|
ValidateDeviceX509CertRequestMsg validateX509CertRequestMsg = 2;
|
|
|
|
|
GetOrCreateDeviceFromGatewayRequestMsg getOrCreateDeviceRequestMsg = 3;
|
2020-10-15 18:16:27 +03:00
|
|
|
GetEntityProfileRequestMsg entityProfileRequestMsg = 4;
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
LwM2MRequestMsg lwM2MRequestMsg = 5;
|
2020-09-10 17:17:42 +03:00
|
|
|
ValidateBasicMqttCredRequestMsg validateBasicMqttCredRequestMsg = 6;
|
2020-09-23 14:24:44 +03:00
|
|
|
ProvisionDeviceRequestMsg provisionDeviceRequestMsg = 7;
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
ValidateDeviceLwM2MCredentialsRequestMsg validateDeviceLwM2MCredentialsRequestMsg = 8;
|
2021-03-12 13:00:51 +02:00
|
|
|
GetResourceRequestMsg resourceRequestMsg = 9;
|
2021-05-31 16:43:33 +03:00
|
|
|
GetOtaPackageRequestMsg otaPackageRequestMsg = 10;
|
2021-04-26 13:37:39 +03:00
|
|
|
GetSnmpDevicesRequestMsg snmpDevicesRequestMsg = 11;
|
|
|
|
|
GetDeviceRequestMsg deviceRequestMsg = 12;
|
|
|
|
|
GetDeviceCredentialsRequestMsg deviceCredentialsRequestMsg = 13;
|
2018-10-05 18:52:59 +03:00
|
|
|
}
|
|
|
|
|
|
2020-03-12 09:36:48 +02:00
|
|
|
/* Response from ThingsBoard Core Service to Transport Service */
|
2018-10-05 18:52:59 +03:00
|
|
|
message TransportApiResponseMsg {
|
2020-09-10 17:17:42 +03:00
|
|
|
ValidateDeviceCredentialsResponseMsg validateCredResponseMsg = 1;
|
2020-03-20 18:00:57 +02:00
|
|
|
GetOrCreateDeviceFromGatewayResponseMsg getOrCreateDeviceResponseMsg = 2;
|
2020-10-15 18:16:27 +03:00
|
|
|
GetEntityProfileResponseMsg entityProfileResponseMsg = 3;
|
|
|
|
|
ProvisionDeviceResponseMsg provisionDeviceResponseMsg = 4;
|
2021-03-22 17:17:42 +02:00
|
|
|
GetSnmpDevicesResponseMsg snmpDevicesResponseMsg = 5;
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
LwM2MResponseMsg lwM2MResponseMsg = 6;
|
2021-03-12 13:00:51 +02:00
|
|
|
GetResourceResponseMsg resourceResponseMsg = 7;
|
2021-05-31 16:43:33 +03:00
|
|
|
GetOtaPackageResponseMsg otaPackageResponseMsg = 8;
|
2021-04-26 13:37:39 +03:00
|
|
|
GetDeviceResponseMsg deviceResponseMsg = 9;
|
|
|
|
|
GetDeviceCredentialsResponseMsg deviceCredentialsResponseMsg = 10;
|
2018-10-28 16:10:16 +02:00
|
|
|
}
|
2020-03-12 09:36:48 +02:00
|
|
|
|
|
|
|
|
/* Messages that are handled by ThingsBoard Core Service */
|
|
|
|
|
message ToCoreMsg {
|
|
|
|
|
TransportToDeviceActorMsg toDeviceActorMsg = 1;
|
2020-03-17 18:38:09 +02:00
|
|
|
DeviceStateServiceMsgProto deviceStateServiceMsg = 2;
|
2020-03-20 18:00:57 +02:00
|
|
|
SubscriptionMgrMsgProto toSubscriptionMgrMsg = 3;
|
2020-03-25 22:11:47 +02:00
|
|
|
bytes toDeviceActorNotificationMsg = 4;
|
2020-06-14 22:24:25 +03:00
|
|
|
EdgeNotificationMsgProto edgeNotificationMsg = 5;
|
2020-03-25 22:11:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* High priority messages with low latency are handled by ThingsBoard Core Service separately */
|
|
|
|
|
message ToCoreNotificationMsg {
|
|
|
|
|
LocalSubscriptionServiceMsgProto toLocalSubscriptionServiceMsg = 1;
|
|
|
|
|
FromDeviceRPCResponseProto fromDeviceRpcResponse = 2;
|
|
|
|
|
bytes componentLifecycleMsg = 3;
|
2020-12-10 16:18:12 +02:00
|
|
|
bytes edgeEventUpdateMsg = 4;
|
2020-03-12 09:36:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Messages that are handled by ThingsBoard RuleEngine Service */
|
|
|
|
|
message ToRuleEngineMsg {
|
2020-03-24 10:35:54 +02:00
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
bytes tbMsg = 3;
|
2020-04-06 18:35:43 +03:00
|
|
|
repeated string relationTypes = 4;
|
2020-04-08 14:09:56 +03:00
|
|
|
string failureMessage = 5;
|
2020-03-12 09:36:48 +02:00
|
|
|
}
|
|
|
|
|
|
2020-03-25 22:11:47 +02:00
|
|
|
message ToRuleEngineNotificationMsg {
|
|
|
|
|
bytes componentLifecycleMsg = 1;
|
|
|
|
|
FromDeviceRPCResponseProto fromDeviceRpcResponse = 2;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-12 09:36:48 +02:00
|
|
|
/* Messages that are handled by ThingsBoard Transport Service */
|
|
|
|
|
message ToTransportMsg {
|
2020-04-14 16:17:08 +03:00
|
|
|
int64 sessionIdMSB = 1;
|
|
|
|
|
int64 sessionIdLSB = 2;
|
|
|
|
|
SessionCloseNotificationProto sessionCloseNotification = 3;
|
|
|
|
|
GetAttributeResponseMsg getAttributesResponse = 4;
|
|
|
|
|
AttributeUpdateNotificationMsg attributeUpdateNotification = 5;
|
|
|
|
|
ToDeviceRpcRequestMsg toDeviceRequest = 6;
|
|
|
|
|
ToServerRpcResponseMsg toServerResponse = 7;
|
2020-10-15 18:16:27 +03:00
|
|
|
EntityUpdateMsg entityUpdateMsg = 8;
|
|
|
|
|
EntityDeleteMsg entityDeleteMsg = 9;
|
2020-09-18 16:11:49 +03:00
|
|
|
ProvisionDeviceResponseMsg provisionResponse = 10;
|
Develop/lwm2m (#3826)
* 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:13:11 +02:00
|
|
|
ToTransportUpdateCredentialsProto toTransportUpdateCredentialsNotification = 11;
|
2021-03-09 19:45:28 +02:00
|
|
|
ResourceUpdateMsg resourceUpdateMsg = 12;
|
|
|
|
|
ResourceDeleteMsg resourceDeleteMsg = 13;
|
2021-07-23 13:27:05 +03:00
|
|
|
UplinkNotificationMsg uplinkNotificationMsg = 14;
|
2020-03-12 09:36:48 +02:00
|
|
|
}
|
2020-10-19 18:00:20 +03:00
|
|
|
|
|
|
|
|
message UsageStatsKVProto{
|
|
|
|
|
string key = 1;
|
|
|
|
|
int64 value = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message ToUsageStatsServiceMsg {
|
|
|
|
|
int64 tenantIdMSB = 1;
|
|
|
|
|
int64 tenantIdLSB = 2;
|
|
|
|
|
int64 entityIdMSB = 3;
|
|
|
|
|
int64 entityIdLSB = 4;
|
|
|
|
|
repeated UsageStatsKVProto values = 5;
|
2021-04-16 13:10:38 +03:00
|
|
|
int64 customerIdMSB = 6;
|
|
|
|
|
int64 customerIdLSB = 7;
|
2020-10-19 18:00:20 +03:00
|
|
|
}
|
2021-04-23 10:17:51 +03:00
|
|
|
|
2021-05-31 16:43:33 +03:00
|
|
|
message ToOtaPackageStateServiceMsg {
|
2021-04-23 10:17:51 +03:00
|
|
|
int64 ts = 1;
|
|
|
|
|
int64 tenantIdMSB = 2;
|
|
|
|
|
int64 tenantIdLSB = 3;
|
|
|
|
|
int64 deviceIdMSB = 4;
|
|
|
|
|
int64 deviceIdLSB = 5;
|
2021-05-31 16:43:33 +03:00
|
|
|
int64 otaPackageIdMSB = 6;
|
|
|
|
|
int64 otaPackageIdLSB = 7;
|
2021-04-30 10:52:07 +03:00
|
|
|
string type = 8;
|
2021-04-23 10:17:51 +03:00
|
|
|
}
|