Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15287

Bluetooth problem nodemcu

$
0
0

please help me, library has instaled, esp8266 nodemcu

Arduino:1.8.19 (Windows Store 1.8.57.0) (Windows 10), Płytka:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

sketch_may09a:3:17: error: no matching function for call to 'BluetoothSerial::BluetoothSerial()'

3 | BluetoothSerial SerialBT;

  |                 ^~~~~~~~

In file included from D:\Dokumenty\Arduino\sketch_may09a\sketch_may09a.ino:1:

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:42:5: note: candidate: 'BluetoothSerial::BluetoothSerial(HardwareSerial&, bool)'

42 | BluetoothSerial(HardwareSerial& serial, bool verbose = true);

  |     ^~~~~~~~~~~~~~~

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:42:5: note: candidate expects 2 arguments, 0 provided

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:17:7: note: candidate: 'constexpr BluetoothSerial::BluetoothSerial(const BluetoothSerial&)'

17 | class BluetoothSerial {

  |       ^~~~~~~~~~~~~~~

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:17:7: note: candidate expects 1 argument, 0 provided

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:17:7: note: candidate: 'constexpr BluetoothSerial::BluetoothSerial(BluetoothSerial&&)'

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:17:7: note: candidate expects 1 argument, 0 provided

D:\Dokumenty\Arduino\sketch_may09a\sketch_may09a.ino: In function 'void setup()':

sketch_may09a:9:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]

9 |   SerialBT.begin("ESP32 LED"); // Inicjalizacja komunikacji Bluetooth z nazwą modułu

  |                  ^~~~~~~~~~~

  |                  |

  |                  const char*

In file included from D:\Dokumenty\Arduino\sketch_may09a\sketch_may09a.ino:1:

D:\Dokumenty\Arduino\libraries\BluetoothSerial\src/BluetoothSerial.h:51:20: note: initializing argument 1 of 'void BluetoothSerial::begin(int)'

51 | void begin(int baudRate = 9600);

  |                ~~~~^~~~~~~~~~~~~~~

D:\Dokumenty\Arduino\sketch_may09a\sketch_may09a.ino: In function 'void loop()':

sketch_may09a:14:16: error: 'class BluetoothSerial' has no member named 'available'

14 | if (SerialBT.available()) {

  |                ^~~~~~~~~

sketch_may09a:15:34: error: 'class BluetoothSerial' has no member named 'read'

15 | char receivedChar = SerialBT.read(); // Odczyt danych z modułu Bluetooth

  |                                  ^~~~

sketch_may09a:19:16: error: 'class BluetoothSerial' has no member named 'println'

19 | SerialBT.println("LED on"); // Wysłanie wiadomości zwrotnej przez Bluetooth

  |                ^~~~~~~

sketch_may09a:22:16: error: 'class BluetoothSerial' has no member named 'println'

22 | SerialBT.println("LED off"); // Wysłanie wiadomości zwrotnej przez Bluetooth

  |                ^~~~~~~

Znaleziono wiele bibliotek w "BluetoothSerial.h"

Wykorzystane: D:\Dokumenty\Arduino\libraries\BluetoothSerial

Niewykorzystane: D:\Dokumenty\Arduino\libraries\BluetoothSerial-1.1.0

exit status 1

no matching function for call to 'BluetoothSerial::BluetoothSerial()'

Ten raport powinien zawierać więcej informacji jeśli w
File -> Preferencje zostanie włączona opcja "Pokaż
szczegółowe informacje podczas kompilacji"

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 15287

Trending Articles