MI-MQTT and last retransmit

- fix MI not sending data over MQTT (discord 1196092306)
- change logic for last retransmit (discord 1196098984)
This commit is contained in:
rejoe2 2024-01-15 13:09:23 +01:00 committed by GitHub
parent f4a82242df
commit e44e722315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 15 deletions

View file

@ -12,9 +12,9 @@
#include "../utils/dbg.h"
// needs a '+1' because the comparison does not send if attempts is equal 0
#define DEFAULT_ATTEMPS 5 + 1
#define MORE_ATTEMPS_ALARMDATA 15 + 1
#define MORE_ATTEMPS_GRIDONPROFILEPARA 15 + 1
#define DEFAULT_ATTEMPS 5
#define MORE_ATTEMPS_ALARMDATA 15
#define MORE_ATTEMPS_GRIDONPROFILEPARA 15
template <uint8_t N=100>
class CommQueue {