we now send owner at boot

This commit is contained in:
geeksville
2020-02-06 10:58:19 -08:00
parent 241e262f5c
commit 2792e2148f
5 changed files with 44 additions and 7 deletions

View File

@@ -57,6 +57,11 @@ public:
/// The owner User record just got updated, update our node DB and broadcast the info into the mesh
void reloadOwner() { DEBUG_MSG("FIXME implement reloadOwner\n"); }
/// Allocate and return a meshpacket which defaults as send to broadcast from the current node.
MeshPacket *allocForSending();
/// Send our owner info to a particular node
void sendOurOwner(NodeNum dest = NODENUM_BROADCAST);
private:
/// Send a packet into the mesh - note p must have been allocated from packetPool. We will return it to that pool after sending.