Skip to content

Commit 34c3cf4

Browse files
Only send crc checked thus valid telegrams to clients.
1 parent cf2454b commit 34c3cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smartMeterLogger-esp32.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,6 @@ bool appendToFile(const char* path, const char* message) {
442442

443443
void process(const String& telegram) {
444444

445-
ws_server_raw.textAll(telegram);
446-
447445
using decodedFields = ParsedData <
448446
/* FixedValue */ energy_delivered_tariff1,
449447
/* FixedValue */ energy_delivered_tariff2,
@@ -463,6 +461,8 @@ void process(const String& telegram) {
463461
if (res.err || !data.all_present())
464462
return;
465463

464+
ws_server_raw.textAll(telegram);
465+
466466
static struct {
467467
uint32_t t1Start;
468468
uint32_t t2Start;

0 commit comments

Comments
 (0)