esp_phy_ble_tx() function
BLE TX command
Arguments
txpwr
Transmit power level. Tx power is about (level-8)*3 dBm, step is 3dB. Level 8 is around 0 dBm;
chan
channel setting, range is 0~39, corresponding frequency = 2402+chan*2;
len
Payload length setting, range is 0-255, unit is byte, 37 bytes is employed generally;
data_type
Data type setting;
syncw
Packet identification (need to be provided by the packet generator or instrument manufacturer), 0x71764129 is employed generally;
tx_num_in
The number of packets sent, 0 means sending packets continuously, other values represent the number of packets to send.
Examples
esp_phy_ble_tx() is referenced by 1 libraries and example projects: