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

Method onReceive

Tactility/Source/service/espnow/EspNowService.cpp:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void EspNowService::onReceive(const esp_now_recv_info_t* receiveInfo, const uint8_t* data, int length) {
147 auto lock = mutex.asScopedLock();
148 lock.lock();
149
150 LOGGER.debug("Received {} bytes", length);
151
152 for (const auto& item: subscriptions) {
153 item.onReceive(receiveInfo, data, length);
154 }
155}
156
157// endregion Callbacks
158

Callers 1

receiveCallbackMethod · 0.45

Calls 3

asScopedLockMethod · 0.80
debugMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected