mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-26 10:48:52 +00:00
* separated PAYLOAD_TYPE_ANON_REQ, to new createAnonDatagram(), with extra 'sender' param. So, caller can use 'self_id' or ephemeral key
This commit is contained in:
@@ -95,7 +95,7 @@ public:
|
||||
if (!got_adv) return; // have not received Advert yet
|
||||
|
||||
uint32_t now = getRTCClock()->getCurrentTime(); // important, need timestamp in packet, so that packet_hash will be unique
|
||||
mesh::Packet* ping = createDatagram(PAYLOAD_TYPE_ANON_REQ, server_id, server_secret, (uint8_t *) &now, sizeof(now));
|
||||
mesh::Packet* ping = createAnonDatagram(PAYLOAD_TYPE_ANON_REQ, self_id, server_id, server_secret, (uint8_t *) &now, sizeof(now));
|
||||
|
||||
if (ping) {
|
||||
if (server_path_len < 0) {
|
||||
|
||||
Reference in New Issue
Block a user