MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / addressToBuffer

Function addressToBuffer

modules/network/ble/esp32/modBLEClient.c:702–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702static void addressToBuffer(esp_bd_addr_t *bda, uint8_t *buffer)
703{
704 uint8_t *address = (uint8_t*)bda;
705 buffer[0] = address[5];
706 buffer[1] = address[4];
707 buffer[2] = address[3];
708 buffer[3] = address[2];
709 buffer[4] = address[1];
710 buffer[5] = address[0];
711}
712
713static void bufferToAddress(uint8_t *buffer, esp_bd_addr_t *bda)
714{

Callers 4

scanResultEventFunction · 0.70
gapPasskeyConfirmEventFunction · 0.70
gattcOpenEventFunction · 0.70
gattcCloseEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected