ip - Selecting a Particular Channel during CIPSEND in ESP8266 -


i have been working esp8266 wifi module project of logging data continuously onto webpage. have been using following code achieve goal using @ commands far (as don't want use pre made library).

at at+cwmode=3 at+cwjap="my_ssid","my_passkey" at+cipmux=1 at+cipserver=1,80 at+cifsr at+cipsend=channel_no,no+of_characters_to+be_sent at+cipsend=channel_no,no+of_characters_to+be_sent at+cipsend=channel_no,no+of_characters_to+be_sent at+cipsend=channel_no,no+of_characters_to+be_sent at_cipclose=0 

now i'm continuously sending data onto webpage , alas closing process using at+cipclose. everytime need enter static ip along port number (which 80 in case) obtained at_cifsr command. after execution of command channel information displayed on serial terminal. , according channel number have change channel number parameter in at+cipsend command. question can configure esp particular channel number once , continuously send data without getting bothered channel number???

i think referring esp's connection number, not wifi channel number. after gre_gor's comment not sure understand web page is. esp8266 can support 4 connections, server have deal them. if replying request remote host, need respond using correct connection number. here example python program shows how connection number request , use in response.

if sending data web page on remote server, try at+cipmux=0 instead of 1 tells there 1 channel. after issuing that, no longer need specify channel number in at+cipsend, in at+cipsend=no+of_characters_to+be_sent


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -