Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
estadoFornecimento.cpp
00001 #include "appCommands.h" 00002 #include "sensor.h" 00003 00004 #define COD_RESP_COM_FORNECIMENTO 0 00005 #define COD_RESP_SEM_FORNECIMENTO 1 00006 00007 void cmdEstadoFornecimento(){ 00008 char state; 00009 if(getSensorState(APP_PARAMETERS.LOAD_CHANNEL) == SENSOR_COM_FORNECIMENTO){ 00010 state = COD_RESP_COM_FORNECIMENTO; 00011 } else{ 00012 state = COD_RESP_SEM_FORNECIMENTO; 00013 } 00014 00015 exec.enviaResposta(RESP_ESTADO_FORNECIMENTO, state); 00016 }
Generated on Thu Jul 14 2022 00:24:57 by
1.7.2
