Refactor RF Configuration Management (#2245)
- Introduced RFConfiguration class to encapsulate RF settings and operations. - Replaced direct usage of RFConfig structure with iRFConfig instance across multiple files. - Updated frequency handling in actuatorSomfy, gatewayPilight, gatewayRF, and gatewayRF2 to use iRFConfig. - Modified webUI to interact with iRFConfig for RF settings management. - Removed deprecated RFConfig structure and related functions. - Enhanced JSON handling for RF configuration loading and saving. - Improved logging for RF configuration operations.
This commit is contained in:
1 parent
401be5f10c
commit
c6b2aae965
12 files changed
+553
-206
No files matched your search
@@ -58,7 +58,7 @@ void setupSomfy() {
|
||||
void XtoSomfy(const char* topicOri, JsonObject& jsonData) {
|
||||
if (cmpToMainTopic(topicOri, subjectMQTTtoSomfy)) {
|
||||
THEENGS_LOG_TRACE(F("MQTTtoSomfy json data analysis" CR));
|
||||
float txFrequency = jsonData["frequency"] | RFConfig.frequency;
|
||||
float txFrequency = jsonData["frequency"] | iRFConfig.getFrequency();
|
||||
# ifdef ZradioCC1101 // set Receive off and Transmitt on
|
||||
disableCurrentReceiver();
|
||||
ELECHOUSE_cc1101.SetTx(txFrequency);
|
||||
|
||||
Reference in new issue
Block a user