@kroegtijger Zie nu dat serialBT al met een voorbeeldje komt. Zou denk ik zelf eens proberen met:
Misschien nog hogere baud rate. En dan eens je hele JSON sturen. Krijg je dan wel alles binnen of nog steeds maar 512?
C++:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #include "BluetoothSerial.h" #if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED) #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it #endif BluetoothSerial SerialBT; void setup() { Serial.begin(115200); SerialBT.begin("ESP32test"); //Bluetooth device name Serial.println("The device started, now you can pair it with bluetooth!"); } void loop() { if (SerialBT.available()) { Serial.write(SerialBT.read()); } } |
Misschien nog hogere baud rate. En dan eens je hele JSON sturen. Krijg je dan wel alles binnen of nog steeds maar 512?