MCPcopy Create free account
hub / github.com/attermann/microReticulum / onPingPacket

Function onPingPacket

examples/lora_announce/src/main.cpp:74–80  ·  view source on GitHub ↗

Ping packet receive callback

Source from the content-addressed store, hash-verified

72
73// Ping packet receive callback
74void onPingPacket(const RNS::Bytes& data, const RNS::Packet& packet) {
75 INFO("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
76 INFOF("onPingPacket: data: %s", data.toHex().c_str());
77 INFOF("onPingPacket: text: \"%s\"", data.toString().c_str());
78 //TRACEF("onPingPacket: %s", packet.debugString().c_str());
79 INFO("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
80}
81
82
83RNS::Reticulum reticulum({RNS::Type::NONE});

Callers

nothing calls this directly

Calls 2

toHexMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected