WiFi Kit 8 - SoftwareSerial

I have a Wifi Kit 8 and would like to use SoftwareSerial to read data from a sensor. Unfortunately I get
no data from the sensor (although it works on another ESP8266) therefore I experimented a bit with the examples from the EspSoftwareSerial-Lib. Unfortunately I can’t get a SoftwareSerial to run. Even simple examples like “onewiretest” don’t work. Can someone help me with that? Do I have to pay attention to anything special? I connected GPIO 12 (D6) to 14 (SCL) and used the following code from the example:

#include <ESP8266WiFi.h>
#include “SoftwareSerial.h”

SoftwareSerial swSer1;
SoftwareSerial swSer2;

void setup() {
Serial.println(PSTR("\nOne Wire Half Duplex Serial Tester"));
swSer1.begin(115200, SWSERIAL_8N1, 12, 12, false, 256);
// high speed half duplex, turn off interrupts during tx
swSer2.begin(115200, SWSERIAL_8N1, 14, 14, false, 256);
// high speed half duplex, turn off interrupts during tx

void loop() {
Serial.println(PSTR("\n\nTesting on swSer1"));
Serial.print(PSTR(“Enter something to send using swSer1.”));

Serial.println(PSTR("\n\nTesting on swSer2"));
Serial.print(PSTR(“Enter something to send using swSer2.”));


void checkSwSerial(SoftwareSerial* ss) {
byte ch;
while (!Serial.available());
while (Serial.available()) {
ch = Serial.read();
// wait 1 second for the reply from SOftwareSerial if any
if (ss->available()) {
while (ss->available()) {
ch = (byte)ss->read();
Serial.print(ch < 0x10 ? PSTR(" 0") : PSTR(" "));
Serial.print(ch, HEX);

Hi there! Have you eventually found a solution to this problem?

I have a sensor that has a serial connection, and I’m not able to read its values from this MCU board. I did verify that there are no issues with the sensor itself by connecting it to an Arduino Nano and it worked with that setup.

Haven’t found a solution. I didn’t bother about it either, instead I used the wifi kit 32. This has an additional hardware serial connection.

1 Like