Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. File principale:
  2.  
  3. #define CONNECT true
  4.  
  5. #include <ESP8266WiFi.h>
  6. #include <ArduinoOTA.h>
  7. #include <RTClib.h>
  8.  
  9. #include "Dichiarazioni.h"
  10. #include "FunzioniNet.cpp"
  11.  
  12. void setup() {
  13.   Serial.begin(115200);
  14.   delay(200);
  15.   Serial.println("\n\nMem1:" + String(ESP.getFreeHeap()));
  16.   Serial.println("Sketch:"+String(ESP.getFreeSketchSpace()));
  17.   rtc.begin(DateTime(F(__DATE__), F(__TIME__)));
  18.  
  19.  Connected=Connect();
  20. }
  21.  
  22. void loop() {
  23.  
  24. }
  25.  
  26. FILE FunzioniNet.cpp
  27.  
  28. bool Connect()
  29. {
  30.   bool Conn = false;
  31.   if (!CONNECT) return false;
  32.  
  33. <eccetera>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement