cipserver no response
Posted: Tue Nov 18, 2014 5:49 am
Hello!
I have a problem with response, i modified the startup setting in the user_main.c, set up a tcp server there just like with the at command cipserver. i can connect to it and send data, it receives it because the light flashes, but it doesnt reply to my other device. i have another micom which should reply through the esp module.
I have a problem with response, i modified the startup setting in the user_main.c, set up a tcp server there just like with the at command cipserver. i can connect to it and send data, it receives it because the light flashes, but it doesnt reply to my other device. i have another micom which should reply through the esp module.
Code: Select all
#include "ets_sys.h"
#include "driver/uart.h"
#include "osapi.h"
#include "at.h"
#include "at_ipCmd.h"
#define sleepms(x) os_delay_us(x*1000);
extern uint8_t at_wifiMode;
void user_init(void)
{
uart_init(BIT_RATE_9600, BIT_RATE_9600);
//at_wifiMode = wifi_get_opmode();
wifi_set_opmode(STATION_MODE);
os_printf("\r\nready!!!\r\n");
uart0_sendStr("\r\nready\r\n");
at_init();
uart0_sendStr("\r\nset cwmode\r\n");
char cwmode[] = "=3\r\n";
at_setupCmdCwmode(0, cwmode);
sleepms(2000);
sleepms(2000);
uart0_sendStr("Setting MUX to 1:");
at_setupCmdCipmux(15, "=1");
at_queryCmdCipmux(15);
sleepms(2000);
uart0_sendStr("Starting TCP server:");
at_setupCmdCipserver(16, "=1,7788");
sleepms(2000);
}