Info from APIs Guide of non-OS SDK, based on ESP8266_NONOS_SDK_V1.5.2 ---> http://bbs.espressif.com/download/file.php?id=1251
wifi_rfid_locp_recv_open
Function:
Enable RFID LOCP (Location Control Protocol) to receive WDS packets.
Prototype:
int wifi_rfid_locp_recv_open(void)
Parameter:
none
Return:
0, succeed;
otherwise, fail.
wifi_rfid_locp_recv_close
Function:
Disable RFID LOCP (Location Control Protocol).
Prototype:
void wifi_rfid_locp_recv_close(void)
Parameter:
none
Return:
none
wifi_register_rfid_locp_recv_cb
Function:
Register a callback of receiving WDS packets. Only if the first MAC
address of the WDS packet is a multicast address.
Callback Definition:
typedef void (*rfid_locp_cb_t)(uint8 *frm, int len, int rssi);
Parameter:
uint8 *frm : point to the head of 802.11 packet
int len : packet length
int rssi : signal strength
Prototype:
int wifi_register_rfid_locp_recv_cb(rfid_locp_cb_t cb)
Parameter:
rfid_locp_cb_t cb : callback
Return:
0, succeed;
otherwise, fail.
wifi_unregister_rfid_locp_recv_cb
Function:
Unregister the callback of receiving WDS packets.
Prototype:
void wifi_unregister_rfid_locp_recv_cb(void)
Parameter:
none
Return:
none