TCPClient / TCPServer doesn't show up on redbear but core?

How come this code works Core not Redbear?

I open serial monitor and nothing show up on bear.

TCPServer server(26);
TCPClient client;

  void setup() {
  Serial.begin(115200);
  
  // credentials should already be stored and
  // auto-connect already have finished
  Serial.print("Connected to "); 
  Serial.println(WiFi.SSID());
  Serial.print("IP Address: "); 
  Serial.println(WiFi.localIP());
  // Start the TCP server
  server.begin();
}

Could it be that you opened it ‘too late’ and that the information was gone before you opened the console? Try putting in a delay of a couple of seconds before the serial prints. See if that helps?

1 Like