I’m having a problem with this custom library that I’ve implemented. This is my first time creating a library so forgive me for the unprofessional way in which it is written.
The purpose of the library is to allow a the main sketch to use a BT master module to establish a serial communication with another arduino with a slave bluetooth device.
Currently the program is restarting every time I use the sendcmd() function of the library to send a command to the BT master module. More specifically, it fails at the “btSerial->write(cmd);” line.
Any help would be appreciated.
Display_R2.ino (1.38 KB)
btmodule.h (773 Bytes)
btmodule.cpp (3.6 KB)
keywords.txt (112 Bytes)