software-serial

ESP8266 - Response from server gets cut

自古美人都是妖i 提交于 2021-01-28 11:41:52
问题 I'm using an ESP8266 connected to an Arduino one via SoftwareSerial to make a post request to a node web server. The ESP8266 sends some data to the server and it should get back other data. The data arrives at the server correctly, but the response from the server is incomplete (it gets cut each time in a different way) and I can't access the body of the response from my Arduino sketch. The server sends the response correctly, as i've checked with hurl. This is my code: #include

Receiving multiple chars at once with Software Serial

僤鯓⒐⒋嵵緔 提交于 2019-12-11 20:30:11
问题 I have a Arduino Uno R3 and a Bluetooth Mate. When linking the Mate to the Arduino Hardware Serial (pin 0,1) I can send multiple characters at once from my connected device but when I try to make the same thing with Software Serial (using pin 4,2 for example) I only get the first character and the rest of the chars are messed up. My code: #include <SoftwareSerial.h> int bluetoothTx = 4; int bluetoothRx = 2; SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); void setup() { Serial.begin(115200