MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / send

Function send

Tactility/Source/service/espnow/EspNow.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool send(const uint8_t* address, const uint8_t* buffer, size_t bufferLength) {
55 auto service = findService();
56 if (service != nullptr) {
57 return service->send(address, buffer, bufferLength);
58 } else {
59 LOGGER.error("Service not found");
60 return false;
61 }
62}
63
64ReceiverSubscription subscribeReceiver(std::function<void(const esp_now_recv_info_t* receiveInfo, const uint8_t* data, int length)> onReceive) {
65 auto service = findService();

Callers 1

sendMessageMethod · 0.85

Calls 3

sendMethod · 0.80
errorMethod · 0.80
findServiceFunction · 0.70

Tested by

no test coverage detected