| поискавой системы для электроныых деталей |
|
AN3972 датащи(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3972 датащи(HTML) 12 Page - STMicroelectronics |
|
12 / 21 page ![]() Application firmware description AN3972 12/21 Doc ID 022161 Rev 1 labels) according to the table allowing the selection of each smartplug and sends an ON or OFF command to it. The command is sent as a POST request to the web server. The page is formatted according to a styles file (.css) which is also stored in the embedded flash. The network parameters (IP address, IP Gateway address, and IP address subnet mask) are stored in the DUAL-EEPROM included in the ZigBee module adapter and read at the startup by the MCU; if an EEPROM isn't recognized the default values are used. The parsing procedure is as follows: HTML parsing procedure if( pxRxBuffer != NULL ) { // Where is the data? netbuf_data( pxRxBuffer, ( void * ) &pcRxString, &usLength ); // Is this a GET? We don't handle anything else. if( !strncmp( pcRxString, "GET ", 4 ) ) { for(int i = 4; i < usLength; i++) { if (pcRxString[i] == ' ' || pcRxString[i] == '\r' || pcRxString[i] == '\n') { pcRxString[i] = 0; } } // Is the page requested debug.html ? if ( !strncmp((char *)pcRxString + 4, "/top3.htm", 9) ) { ++sReqCount; // Build the dynamic page file.data = s_cDynamicPage; PrepareFrame2(s_cDynamicPage,pxNetCon); file.len = strlen(s_cDynamicPage); --sReqCount; } else if ( !strncmp((char *)pcRxString + 4, "/top2.htm", 9) ) { // Build the dynamic page file.data = s_cDynamicPage; PrepareFrame1(s_cDynamicPage,pxNetCon); file.len = strlen(s_cDynamicPage); } |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |