mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-13 04:58:09 +00:00
Make flush queue on activate configurable through dev-profile.
This commit is contained in:
4
api/grpc-web/api/device_profile_pb.d.ts
vendored
4
api/grpc-web/api/device_profile_pb.d.ts
vendored
@ -33,6 +33,9 @@ export class DeviceProfile extends jspb.Message {
|
||||
getPayloadCodecScript(): string;
|
||||
setPayloadCodecScript(value: string): DeviceProfile;
|
||||
|
||||
getFlushQueueOnActivate(): boolean;
|
||||
setFlushQueueOnActivate(value: boolean): DeviceProfile;
|
||||
|
||||
getUplinkInterval(): number;
|
||||
setUplinkInterval(value: number): DeviceProfile;
|
||||
|
||||
@ -97,6 +100,7 @@ export namespace DeviceProfile {
|
||||
adrAlgorithmId: string,
|
||||
payloadCodecRuntime: CodecRuntime,
|
||||
payloadCodecScript: string,
|
||||
flushQueueOnActivate: boolean,
|
||||
uplinkInterval: number,
|
||||
deviceStatusReqInterval: number,
|
||||
supportsOtaa: boolean,
|
||||
|
30
api/grpc-web/api/device_profile_pb.js
vendored
30
api/grpc-web/api/device_profile_pb.js
vendored
@ -327,6 +327,7 @@ proto.api.DeviceProfile.toObject = function(includeInstance, msg) {
|
||||
adrAlgorithmId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
payloadCodecRuntime: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
||||
payloadCodecScript: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||
flushQueueOnActivate: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
||||
uplinkInterval: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
||||
deviceStatusReqInterval: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
||||
supportsOtaa: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
||||
@ -414,6 +415,10 @@ proto.api.DeviceProfile.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setPayloadCodecScript(value);
|
||||
break;
|
||||
case 10:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setFlushQueueOnActivate(value);
|
||||
break;
|
||||
case 11:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setUplinkInterval(value);
|
||||
@ -568,6 +573,13 @@ proto.api.DeviceProfile.serializeBinaryToWriter = function(message, writer) {
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getFlushQueueOnActivate();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
10,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getUplinkInterval();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
@ -835,6 +847,24 @@ proto.api.DeviceProfile.prototype.setPayloadCodecScript = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool flush_queue_on_activate = 10;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.DeviceProfile.prototype.getFlushQueueOnActivate = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.DeviceProfile} returns this
|
||||
*/
|
||||
proto.api.DeviceProfile.prototype.setFlushQueueOnActivate = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 uplink_interval = 11;
|
||||
* @return {number}
|
||||
|
Reference in New Issue
Block a user