-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino WB3S Software Serial #7
Comments
#include <TuyaWifi.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial= SoftwareSerial(5, 6);
TuyaWifi my_device(&mySerial);
...
void setup()
{
...
mySerial.begin(9600);
...
}
... 2.No support other commands |
The way TuyaWifi modifies the software serial port does not seem to work correctly |
Switching to HardwareSerial will cause the output chip to get stuck. |
What MCU are you using to connect to the Tuya modules? |
STM32F103C8T6 |
You can check if the version of the arduino library you are using is 0.0.3. In 0.0.3 he may not support SoftwareSerial. Are you using the stm32 library https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json? |
I confirmed that the V0.0.3 I was using, SoftwareSerial could not be used, so I switched to HardwareSerial, but it would cause my chip to freeze. This is part of my code. When the button is pressed, hello will be output, but this code will Causing my chip to get stuck. |
Can you post the full code? |
|
Here you've added some header files that aren't necessary, and there are some initializations that are wrong and incomplete. You can start by looking at the https://github.com/tuya/tuya-wifi-mcu-sdk-arduino-library/blob/master/examples/start/start.ino |
About hardware serial port pin settings, you can refer to this topic: https://www.stm32duino.com/viewtopic.php?t=1446 |
ok thanks i will try again and if i fix the problem i will come back and let everyone know |
Is it possible to use SoftwareSerial? Soft serial port |
not support |
Doing a few experiments with the WB3S module and Uno. How can I change default UART pins to, say, 6 and 7?
Can I work with WB3S using AT commands or in any other way, than the ones from your lib?
The text was updated successfully, but these errors were encountered: