Skip to content

Commit

Permalink
Added LWT Topic
Browse files Browse the repository at this point in the history
MQTT LWT Topic, minor changes and typos ...
  • Loading branch information
couin3 committed Sep 21, 2020
1 parent 30c9ae6 commit b7d82e8
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 156 deletions.
3 changes: 2 additions & 1 deletion RFLink/1_Radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ void set_Radio_mode(Radio_State new_State)
radio.reset();
radio.initialize();
radio.setFrequency(433920000);
Serial.print("Freq = "); Serial.println(radio.getFrequency());
Serial.print("Freq = ");
Serial.println(radio.getFrequency());
//Serial.print("Temp = "); Serial.println(radio.readTemperature());
radio.setHighPower(true); // for RFM69HW
// radio.sleep();
Expand Down
2 changes: 1 addition & 1 deletion RFLink/1_Radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ void set_Radio_mode(Radio_State new_state);
#if (defined(ESP8266) || defined(ESP32))
void show_Radio_Pin();
#endif // ESP8266 || ESP32
#endif // Radio_h
#endif // Radio_h
20 changes: 10 additions & 10 deletions RFLink/2_Signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

#include <Arduino.h>

#define RAW_BUFFER_SIZE 292 // 292 // Maximum number of pulses that is received in one go.
#define MIN_RAW_PULSES 50 // 50 // Minimal number of bits that need to have been received before we spend CPU time on decoding the signal.
#define RAWSIGNAL_SAMPLE_RATE 32 // 32 // =8 bits. Sample width / resolution in uSec for raw RF pulses.
#define SIGNAL_SEEK_TIMEOUT_MS 25 // 25 // After this time in mSec, RF signal will be considered absent.
#define SIGNAL_MIN_PREAMBLE_US 400 // 400 // After this time in uSec, a RF signal will be considered to have started.
#define MIN_PULSE_LENGTH_US 100 // 250 // Pulses shorter than this value in uSec. will be seen as garbage and not taken as actual pulses.
#define SIGNAL_END_TIMEOUT_US 5000 // 5000 // After this time in uSec, the RF signal will be considered to have stopped.
#define SIGNAL_REPEAT_TIME_MS 250 // 500 // Time in mSec. in which the same RF signal should not be accepted again. Filters out retransmits.
#define SCAN_HIGH_TIME_MS 50 // 50 // time interval in ms. fast processing for background tasks
#define RAW_BUFFER_SIZE 292 // 292 // Maximum number of pulses that is received in one go.
#define MIN_RAW_PULSES 50 // 50 // Minimal number of bits that need to have been received before we spend CPU time on decoding the signal.
#define RAWSIGNAL_SAMPLE_RATE 32 // 32 // =8 bits. Sample width / resolution in uSec for raw RF pulses.
#define SIGNAL_SEEK_TIMEOUT_MS 25 // 25 // After this time in mSec, RF signal will be considered absent.
#define SIGNAL_MIN_PREAMBLE_US 400 // 400 // After this time in uSec, a RF signal will be considered to have started.
#define MIN_PULSE_LENGTH_US 100 // 250 // Pulses shorter than this value in uSec. will be seen as garbage and not taken as actual pulses.
#define SIGNAL_END_TIMEOUT_US 5000 // 5000 // After this time in uSec, the RF signal will be considered to have stopped.
#define SIGNAL_REPEAT_TIME_MS 250 // 500 // Time in mSec. in which the same RF signal should not be accepted again. Filters out retransmits.
#define SCAN_HIGH_TIME_MS 50 // 50 // time interval in ms. fast processing for background tasks

struct RawSignalStruct // Raw signal variabelen places in a struct
{
Expand All @@ -45,4 +45,4 @@ boolean ScanEvent(void);

void AC_Send(unsigned long data, byte cmd);

#endif
#endif
2 changes: 1 addition & 1 deletion RFLink/3_Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ boolean CheckCmd()
return true;
}

/*********************************************************************************************/
/*********************************************************************************************/
2 changes: 1 addition & 1 deletion RFLink/3_Serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ boolean CheckMQTT(byte *);
#ifdef AUTOCONNECT_ENABLED
boolean CheckWeb(String &);
#endif // AUTOCONNECT_ENABLED
#endif
#endif
2 changes: 1 addition & 1 deletion RFLink/4_Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,4 +658,4 @@ String GPIO2String(uint8_t uGPIO)
else
return "NOT_A_PIN";
}
#endif // ESP32
#endif // ESP32
Loading

0 comments on commit b7d82e8

Please sign in to comment.