Hallo,
I use Open AT 3.12 with WIP 2.00.05
I have a Socket-Server (php) who is listen to port 2006 and get a string as response.
If I test it with telnet IP Port so it works fine.
But not with the fasttrack modem.
Here´s my quellcode:
#include “adl_global.h”
#include “wip.h”
#if OAT_API_VERSION >= 400
const u16 wm_apmCustomStackSize = 4096;
#else
u32 wm_apmCustomStack[1024];
const u16 wm_apmCustomStackSize = sizeof(wm_apmCustomStack);
#endif
enum state {
JUST_OPEN,
FORENAME_REQUEST_SENT,
NAME_REQUEST_SENT,
PHONE_REQUEST_SENT,
QUIT_REQUEST_SENT
};
void commHandler(wip_event_t *ev, enum state *ctx) {
wip_write(c,“MSG_WELCOME”,strlen(“MSG_WELCOME”));
}
void adl_main ( adl_InitType_e InitType ) {
static enum state state = JUST_OPEN;
wip_channel_t client = wip_TCPClientCreate(SERVER_ADDRESS,
SERVER_PORT,
&commHandler,
&state);
}
Can anybody help me?
Thanks