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() {
  // credentials should already be stored and
  // auto-connect already have finished
  Serial.print("Connected to "); 
  Serial.print("IP Address: "); 
  // Start the TCP server

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