Frederico Prado / smartRamalEZR

Dependencies:   CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04

Fork of smartRamalKW by Equipe Firmware V2COM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers buscarMedidor.cpp Source File

buscarMedidor.cpp

00001 #include "appCommands.h"
00002 
00003 #ifndef RAMAL
00004 
00005 extern Pima pima;
00006 
00007 void cmdBuscarMedidor(char * dados, unsigned char tamanhoDados){
00008     if(tamanhoDados != MEDIDOR_LENGTH){
00009         return;
00010     }
00011     if(memcmp(dados, pima.getMeterNumber(), MEDIDOR_LENGTH) == 0){
00012         exec.enviaResposta(RESP_BUSCAR_MEDIDOR, (char *)pima.getMeterNumber(), MEDIDOR_LENGTH);
00013     }
00014     return;
00015 }
00016 
00017 #endif  // ndef(RAMAL)