Питание 12 В подаете на прибор?
Подключил "на столе". Эбу микас 11 от газели 16-ти клапанной. По проводу видят все, по блютузу только андроиды. Название соединения не соответствует прошивке.
Скетч самый простой:
//This sketch creates a bridge between Serial and Classical Bluetooth (SPP)
#include "BluetoothSerial.h"
#include "driver/uart.h"
//#define USE_PIN // Uncomment this to use PIN during pairing. The pin is specified on the line below
const char *pin = "1234";
String device_name = "SCANMATIK #A78730";
BluetoothSerial SerialBT;
void setup() {
Serial.setRxBufferSize(1024);
Serial.setTxBufferSize(1024);
Serial.begin(921600);
uart_set_pin(UART_NUM_0, 1, 3, 22, 19); //Set UART pins(UART, TX, RX, RTS, CTS)
uart_set_hw_flow_ctrl(UART_NUM_0, UART_HW_FLOWCTRL_CTS_RTS, 64); // 64 is the threshold for RX flow control (0 to 127 bytes)
uart_set_mode(UART_NUM_0, UART_MODE_UART);
SerialBT.begin(device_name); //Bluetooth device name
#ifdef USE_PIN
SerialBT.setPin(pin);
#endif
Serial.print("AT-AB -BypassMode-\n");
}
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
}