这篇教程C++ waitResponse函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中waitResponse函数的典型用法代码示例。如果您正苦于以下问题:C++ waitResponse函数的具体用法?C++ waitResponse怎么用?C++ waitResponse使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了waitResponse函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: portFlushRXint8_t SIM900GSM::sendSMS(const char *number, const char *message){ portFlushRX(); portWrite( "AT+CMGS=/"%s/"/r/n", number ); if( waitResponse( ">", 5000 ) < 0 ) return (-1); portFlushRX(); portWrite( "%s%c", message, (char)0x1A ); // append CTRL+Z return waitResponse("+CMGS", 10000);}
开发者ID:akhilvinod007,项目名称:yus-repo,代码行数:11,
示例2: waitResponseuint8_t WizFi250SpiDrv::waitResponseCmd(uint32_t check_delay, uint32_t check_count, char* str_find1, char* str_find2, uint8_t debug_print ){ uint8_t nResult = SPI_SUCCESS; char temp_buff[50]; nResult = waitResponse( check_delay, check_count, str_find1, str_find2, debug_print ); if( nResult != SPI_SUCCESS && nResult != SPI_RX_BUFFER_MAX ) return nResult; if ( m_spi_rx_length > 0 ) { char temp_str[MAX_SPI_BUFSIZE]; memcpy(temp_str,m_spi_rx_buffer,MAX_SPI_BUFSIZE); //strcpy(temp_str,(char*)m_spi_rx_buffer); if ( debug_print <= 4 ) { strcpy_P( temp_buff, (char*)pgm_read_word(&debug_str_table[DBG_SPI_RECV]) ); DBG_LN(temp_buff); DBG(temp_str); strcpy_P( temp_buff, (char*)pgm_read_word(&debug_str_table[DBG_SPI_END]) ); DBG_LN(temp_buff); } m_spi_rx_length = 0; } return nResult;}
开发者ID:embeddist,项目名称:Arduino_WizFi250,代码行数:32,
示例3: writeCommandvoid SIM900GSM::begin( uint32_t baud ){ SIM900::begin(baud); writeCommand("AT+CMGF=1"); waitResponse("OK", 500);}
开发者ID:akhilvinod007,项目名称:yus-repo,代码行数:7,
示例4: fflush/* Function: Write information about the influence function after making* a move to stderr.* Arguments: move, optionally a list of what to show* Fails: never* Returns: nothing*/intQGtp::debugMoveInfluence (QString color, char c, int i,QString list){ fflush(QByteArray("debug_move_influence ")+color.toLatin1()+ " "+c+intToQByteArray(i)+" "+list.toLatin1()); return waitResponse();}
开发者ID:danhfan,项目名称:qgo,代码行数:13,
示例5: waitResponsebool CApoxObj::sendCommandWait( uint8_t cmdcode, responseMsg *pMsg, uint32_t timeout ){ // Send the command if ( USB_OK != sendCommand( cmdcode ) ) return false; return waitResponse( pMsg, timeout );}
开发者ID:davidlcamlin,项目名称:vscp_software,代码行数:7,
示例6: getACK//**********************************************************************//!Wait for ACK response and stores it in the dataRX buffervoid getACK(void){ delay(5); waitResponse(); for (int i = 0; i < 5 ; i++) { dataRX[i] = Serial.read(); }}
开发者ID:rayui,项目名称:electricfoosball,代码行数:10,
示例7: delay //!Wait for ACK response and stores it in the dataRX buffer void WaspRFID::getACK(void) { delay(5); waitResponse(); for (int i = 0; i<5 ; i++) { dataRX[i] = Serial.read(_uart); } }
开发者ID:Libelium,项目名称:waspmoteapi_unstable,代码行数:9,
示例8: messageint QGtp::set_free_handicap(QList<Point> handicap_stones){ QByteArray message("set_free_handicap"); for ( int i=0; i<handicap_stones.length(); ++i ) { message.append(" ").append(encodeCoors(handicap_stones[i].x,handicap_stones[i].y)); } fflush (message); return waitResponse();}
开发者ID:EPeillard,项目名称:qgo,代码行数:11,
示例9: sendTX//**********************************************************************//!Send data stored in dataTXvoid sendTX(uint8_t *dataTX, uint8_t length, uint8_t outLength){ Serial.print(0x00, BYTE); Serial.print(0x00, BYTE); Serial.print(0xFF, BYTE); for (int i = 0; i < length; i++) { Serial.print(dataTX[i], BYTE); } Serial.print(0x00, BYTE); getACK(); waitResponse();// Receive response getData(outLength);}
开发者ID:rayui,项目名称:electricfoosball,代码行数:17,
示例10: commandvoid GSwifi::writeCert() { // Binary format, store in memory command( "AT+TCERTADD=cacert,0,753,1", GSCOMMANDMODE_NORMAL ); resetResponse(GSCOMMANDMODE_NORMAL); // ESCAPE 'W' is written in pgm too (thus +2) for (uint16_t i=0; i<753 + 2; i++) { uint8_t read = pgm_read_byte_near(der + i); serial_->write( read ); Serial.print( read, HEX ); } setBusy(true); waitResponse(GS_TIMEOUT);}
开发者ID:pipoop,项目名称:hobby-device,代码行数:16,
示例11: GSLOG_PRINTvoid GSwifi::command (const char *cmd, GSCOMMANDMODE res, uint8_t timeout_second) { // GSLOG_PRINT(P("F: 0x")); GSLOG_PRINTLN2( freeMemory(), HEX ); GSLOG_PRINT(P("c> ")); resetResponse(res); serial_->println(cmd); GSLOG_PRINTLN(cmd); if (timeout_second == GS_TIMEOUT_NOWAIT) { return; } setBusy(true); waitResponse(timeout_second);}
开发者ID:pipoop,项目名称:hobby-device,代码行数:17,
示例12: printByte /*! /param uint8_t dataTX : pointer to dataTX vector. */ void WaspRFID::sendTX(uint8_t *dataTX, uint8_t length, uint8_t outLength) { printByte(PREAMBLE, _uart); printByte(PREAMBLE, _uart); printByte(STARTCODE2, _uart); for (int i = 0; i<length; i++) { printByte(dataTX[i], _uart); } printByte(POSTAMBLE, _uart); getACK(); waitResponse(); // 1C - receive response getData(outLength); digitalWrite(MUX_USB_XBEE, LOW); delay(_delay); }
开发者ID:ferrangb,项目名称:waspmoteapi,代码行数:21,
注:本文中的waitResponse函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ wait_all_core0_started函数代码示例 C++ waitNotBusy函数代码示例 |