[RTL] Correct string handling for type key in NAMING_KEYS (#1960)
* Correct string handling for type key in NAMING_KEYS Extend class structure RTL_433device and modify code to create correct state topic in discovery message to support sensors, that send type key as well as sensors, that don't. Actually only TPMS sensors use type=TPMS. * Try to correct format failure. * Remove trailing spaces
This commit is contained in:
1 parent
db8e850570
commit
23b3123b97
2 files changed
+30
-15
No files matched your search
+8
-6
@@ -1,15 +1,15 @@
|
||||
/*
|
||||
/*
|
||||
Theengs OpenMQTTGateway - We Unite Sensors in One Open-Source Interface
|
||||
|
||||
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
|
||||
Act as a gateway between your 433mhz, infrared IR, BLE, LoRa signal and one interface like an MQTT broker
|
||||
Send and receiving command by MQTT
|
||||
|
||||
|
||||
This files enables to set your parameter for the radiofrequency gateways (ZgatewayRF and ZgatewayRF2) with RCswitch and newremoteswitch library
|
||||
|
||||
|
||||
Copyright: (c)Florian ROBERT
|
||||
|
||||
|
||||
This file is part of OpenMQTTGateway.
|
||||
|
||||
|
||||
OpenMQTTGateway is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
@@ -73,10 +73,12 @@ extern void launchRTL_433Discovery(bool overrideDiscovery);
|
||||
|
||||
# define uniqueIdSize 60 // longest model + longest key
|
||||
# define modelNameSize 31 // longest model
|
||||
# define typeSize 10 // longest type
|
||||
|
||||
struct RTL_433device {
|
||||
char uniqueId[uniqueIdSize];
|
||||
char modelName[modelNameSize];
|
||||
char type[typeSize];
|
||||
bool isDisc;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user