I'm using currently RPi4's integrated BT module (by Cypress) to communicate with other BT devices via Classic and also BLE connections.
However I'm thinking on moving towards ESP32, and I'd like you to confirm my assumptions if ESP32 is able to do my goals.
Basically I'm using "hcitool", "l2ping" and "gatttool" with my current setup.
Can I do the same with ESP32? How can I attach ESP32 to RPi? Only via USB? Or also via UART? (Keeping in mind that ESP32 needs to provide the above requirements)
Basically I need to do (in C):
Code: Select all
socket(PF_BLUETOOTH, SOCK_RAW | SOCK_NONBLOCK, BTPROTO_L2CAP);
Code: Select all
socket(PF_BLUETOOTH, SOCK_SEQPACKET | SOCK_NONBLOCK, BTPROTO_L2CAP);
Thank you.