Bluefruit LE UART Friend

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
geroy80
 
Posts: 2
Joined: Thu Nov 10, 2022 2:29 pm

Bluefruit LE UART Friend

Post by geroy80 »

Hi,

I am new in this topic, and I started to learn it in a University.
I followed an instruction, and uncomment a necessary parts for SW UART, but when I verify in Arduino, I got a fault:
"use of deleted function 'SoftwareSerial::SoftwareSerial(const SoftwareSerial&)'

And a line 61 is highlighted:
SoftwareSerial bluefruitSS = SoftwareSerial(BLUEFRUIT_SWUART_TXD_PIN, BLUEFRUIT_SWUART_RXD_PIN);

Can you help me to what to do to eliminate this error?

Thanks

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluefruit LE UART Friend

Post by mikeysklar »

Can you link me to the example code you are following? Is it from the github repo Adafruit provides?

https://github.com/adafruit/Adafruit_Bl ... r/examples

User avatar
geroy80
 
Posts: 2
Joined: Thu Nov 10, 2022 2:29 pm

Re: Bluefruit LE UART Friend

Post by geroy80 »

I added the library Adafruit Bluefruit NRF51 - atcommand
Is any other library needs to be added?
Why SoftwareSerial is not defined?
This is an error I got:

/tmp/877947118/Bluetooth/Bluetooth.ino:61:101: error: use of deleted function 'SoftwareSerial::SoftwareSerial(const SoftwareSerial&)'
const SoftwareSerial bluefruitSS = SoftwareSerial(BLUEFRUIT_SWUART_TXD_PIN, BLUEFRUIT_SWUART_RXD_PIN);
^
In file included from /mnt/create-efs/webide/e8/78/e878a3fe5c75244ca4a44005eaaa03d4:30070780/libraries_v2/Adafruit BluefruitLE nRF51/Adafruit_BluefruitLE_UART.h:46,
from /tmp/877947118/Bluetooth/Bluetooth.ino:20:
/home/builder/opt/libraries/latest/espsoftwareserial_6_16_1/src/SoftwareSerial.h:94:5: note: declared here
SoftwareSerial(const SoftwareSerial&) = delete;
^~~~~~~~~~~~~~
/tmp/877947118/Bluetooth/Bluetooth.ino:64:69: error: binding reference of type 'SoftwareSerial&' to 'const SoftwareSerial' discards qualifiers
BLUEFRUIT_UART_CTS_PIN, BLUEFRUIT_UART_RTS_PIN);
^
In file included from /tmp/877947118/Bluetooth/Bluetooth.ino:20:
/mnt/create-efs/webide/e8/78/e878a3fe5c75244ca4a44005eaaa03d4:30070780/libraries_v2/Adafruit BluefruitLE nRF51/Adafruit_BluefruitLE_UART.h:69:5: note: initializing argument 1 of 'Adafruit_BluefruitLE_UART::Adafruit_BluefruitLE_UART(SoftwareSerial&, int8_t, int8_t, int8_t)'
Adafruit_BluefruitLE_UART(SoftwareSerial &port,
^~~~~~~~~~~~~~~~~~~~~~~~~
Error during build: exit status 1

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”