teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

Committer:
brunofgc
Date:
Mon May 22 20:08:46 2017 +0000
Revision:
3:9598af355293
Parent:
1:0e0967c88590
Child:
4:13ff9c81dc10
21/05/2017; Com problema em envio via postCommandMode, quando faz o envio do CIPSEND para enviar o cabe?alho HTML ele recebe j? uma resposta do server, ao invez de receber o OK do modem.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
brunofgc 0:1c0a769988ee 1 #ifndef _diversos_h_
brunofgc 0:1c0a769988ee 2 #define _diversos_h_
brunofgc 0:1c0a769988ee 3 #include "mbed.h"
brunofgc 0:1c0a769988ee 4 #include "serialPC.h"
brunofgc 0:1c0a769988ee 5 #include "funcoesSDCard.h"
brunofgc 1:0e0967c88590 6 #include "main.h"
brunofgc 1:0e0967c88590 7 #include "devices.h"
brunofgc 1:0e0967c88590 8 #define tamBufferCommands 1024
brunofgc 0:1c0a769988ee 9 #include <cstdlib>
brunofgc 0:1c0a769988ee 10
brunofgc 0:1c0a769988ee 11 /*
brunofgc 0:1c0a769988ee 12 // On reset, indicate a watchdog reset or a pushbutton reset on LED 4 or 3
brunofgc 0:1c0a769988ee 13 if ((LPC_WDT->WDMOD >> 2) & 1)
brunofgc 0:1c0a769988ee 14 myled4 = 1; else myled3 = 1;
brunofgc 0:1c0a769988ee 15 */
brunofgc 0:1c0a769988ee 16
brunofgc 0:1c0a769988ee 17 class WatchdogTimer {
brunofgc 0:1c0a769988ee 18 public:
brunofgc 0:1c0a769988ee 19 //void WatchdogTimer(void);
brunofgc 0:1c0a769988ee 20
brunofgc 0:1c0a769988ee 21 // Load timeout value in watchdog timer and enable
brunofgc 0:1c0a769988ee 22 void kick(float);
brunofgc 0:1c0a769988ee 23
brunofgc 0:1c0a769988ee 24 // "kick" or "feed" the dog - reset the watchdog timer
brunofgc 0:1c0a769988ee 25 // by writing this required bit pattern
brunofgc 0:1c0a769988ee 26 void kick();
brunofgc 0:1c0a769988ee 27 };
brunofgc 0:1c0a769988ee 28
brunofgc 0:1c0a769988ee 29
brunofgc 0:1c0a769988ee 30
brunofgc 0:1c0a769988ee 31 namespace eventosRTC{
brunofgc 0:1c0a769988ee 32 //Variaveis
brunofgc 0:1c0a769988ee 33 extern bool segundos;
brunofgc 0:1c0a769988ee 34 extern bool minutos;
brunofgc 0:1c0a769988ee 35 //extern bool hora_completa;
brunofgc 0:1c0a769988ee 36 extern bool rotina10Segundos;
brunofgc 0:1c0a769988ee 37 extern bool rotina15Minutos;
brunofgc 0:1c0a769988ee 38 extern bool rotina1hora;
brunofgc 0:1c0a769988ee 39 extern bool rotina1segundo;
brunofgc 0:1c0a769988ee 40
brunofgc 0:1c0a769988ee 41 //Funções
brunofgc 0:1c0a769988ee 42 }
brunofgc 0:1c0a769988ee 43
brunofgc 0:1c0a769988ee 44 namespace diversos{
brunofgc 0:1c0a769988ee 45 //Variaveis
brunofgc 0:1c0a769988ee 46 extern WatchdogTimer wdt;
brunofgc 0:1c0a769988ee 47 extern char msg[200];
brunofgc 0:1c0a769988ee 48
brunofgc 0:1c0a769988ee 49 //Funções
brunofgc 0:1c0a769988ee 50 uint32_t memAvailable();
brunofgc 0:1c0a769988ee 51 void progressBar(uint32_t,uint32_t);
brunofgc 3:9598af355293 52 void strReplace(char *, char *, char *);
brunofgc 0:1c0a769988ee 53 //double stringToFloat(char *,uint16_t); //Ponteiro pra string e max tam da string por segurança
brunofgc 0:1c0a769988ee 54 }
brunofgc 0:1c0a769988ee 55
brunofgc 0:1c0a769988ee 56 namespace commands{
brunofgc 0:1c0a769988ee 57 //Variaveis
brunofgc 0:1c0a769988ee 58 extern char buffer[tamBufferCommands];
brunofgc 0:1c0a769988ee 59
brunofgc 0:1c0a769988ee 60 //Funções
brunofgc 0:1c0a769988ee 61 void exec(uint8_t);
brunofgc 0:1c0a769988ee 62 }
brunofgc 0:1c0a769988ee 63
brunofgc 0:1c0a769988ee 64 #endif