src/cWiFi.cpp
/* set log level for WiFi module.
  default is LOG_WARN
  * LOG_ERROR
  * LOG_WARN
  * LOG_INFO
*/
set log level for WiFi module.
set log level for WiFi module .
void cWiFi::set_log_level(const uint8_t level){
  switch(level){
  case LOG_INFO:
    send_command( "LOG:INFO\r\n" );
    break;
  case LOG_WARN:
    send_command( "LOG:WARN\r\n" );
    break;
  case LOG_ERROR:
    send_command( "LOG:ERROR\r\n" );
    break;
  default:
    Log.warn("W:Invalid WiFi log level:");
    Log.warnln(level);
  }
}
void cWiFi :: set_log_level ( const uint8_t level ) { switch ( level ) { case LOG_INFO : send_command ( " \r \n " ) ; break ; case LOG_WARN : send_command ( " \r \n " ) ; break ; case LOG_ERROR : send_command ( " \r \n " ) ; break ; default : Log . warn ( " " ) ; Log . warnln ( level ) ; } }
set log level for WiFi module.
set log level for WiFi module .