Skip to content

This doesn't seem to be the right code #1

@timwilson235

Description

@timwilson235

Is this really the right code? Note the following (in the setup() of the main file)

// Start UDP SERVER on port 2222, telemetry port 2223
//Serial.println("Start UDP server");
//ESPsendCommand("AT+CIPMUX=0", "OK", 3); // Single connection mode
//ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode
//char Telemetry[80];
//strcpy(Telemetry,"AT+CIPSTART="UDP","");
//strcat(Telemetry,TELEMETRY);
//strcat(Telemetry,"",2223,2222,0");
//ESPsendCommand(Telemetry, "OK", 3);

// Start TCP SERVER
ESPsendCommand("AT+CIPMUX=1", "OK", 3); // Single connection mode
ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode
ESPsendCommand("AT+CIPSERVER=1,2222", "OK", 3); // TCP server

The UDP setup is all commented out, and instead there's a TCP server. I checked that your iPhone control app actually sends UDP. So, how can this work?

And further, the commands to start the TCP server won't be accepted by the ESP; transparent mode is incompatible with CIPMUX=1 and CIPSERVER=1 (at least on the ESP version I was using).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions