Browse Source
Merge pull request #863 from liamcottle/fix/repeater-login
Fix: repeater login
pull/888/head
ripplebiz
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
examples/simple_repeater/MyMesh.cpp
|
|
|
@ -405,6 +405,7 @@ void MyMesh::onAnonDataRecv(mesh::Packet *packet, const uint8_t *secret, const m |
|
|
|
uint32_t timestamp; |
|
|
|
memcpy(×tamp, data, 4); |
|
|
|
|
|
|
|
data[len] = 0; // ensure null terminator
|
|
|
|
uint8_t reply_len = handleLoginReq(sender, secret, timestamp, &data[4]); |
|
|
|
|
|
|
|
if (reply_len == 0) return; // invalid request
|
|
|
|
|