ESP32 Publish Data to Cloud without Wi-Fi (TTGO T-Call ESP32 SIM800L)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 เม.ย. 2024
  • For complete project details (schematics + source code), visit ► RandomNerdTutorials.com/esp32...
    Buy the ESP32 SIM800L board for ~$11 ► makeradvisor.com/tools/ttgo-t...
    How to setup your own data cloud service ► • Visualize Your Sensor ...
    Hosting Account + Free Domain Name ► RandomNerdTutorials.com/blueh...
    In-depth review of TTGO T-Call ESP32 SIM800L ► makeradvisor.com/ttgo-t-call-...
    This project shows how to connect the TTGO T-Call ESP32 SIM800L board to the Internet using a SIM card data plan and publish data to the cloud without using Wi-Fi. We'll use Arduino IDE to program this board.
    Like my page on Facebook:
    / randomnerdtutorials
    Follow me on twitter:
    / ruisantosdotme
    Subscribe for more projects like this!
    bit.ly/subscribeRNT
    #IoT #ESP32 #Arduino
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 180

  • @RuiSantosdotme
    @RuiSantosdotme  4 ปีที่แล้ว +12

    You can find the complete project details (schematics + source code) on my blog ► RandomNerdTutorials.com/esp32-sim800l-publish-data-to-cloud/
    Buy the ESP32 SIM800L board for ~$11 ► makeradvisor.com/tools/ttgo-t-call-esp32-sim800/
    How to setup your own data cloud service ► th-cam.com/video/a1567vlSVC8/w-d-xo.html
    Hosting Account + Free Domain Name ► RandomNerdTutorials.com/bluehost/
    In-depth review of TTGO T-Call ESP32 SIM800L ► makeradvisor.com/ttgo-t-call-esp32-with-sim800l-gsm-gprs/

    • @chullenmn
      @chullenmn 4 ปีที่แล้ว +2

      where to buy the antenna?

    • @jtaylor9271
      @jtaylor9271 4 ปีที่แล้ว

      @@chullenmn same question

    • @EternalKernel
      @EternalKernel 4 ปีที่แล้ว

      Wait..the sim card doesnt have to be connected to an account?

    • @jtaylor9271
      @jtaylor9271 4 ปีที่แล้ว

      @@EternalKernel you need a data plan. Check out Ting.com

    • @linoaddiego1039
      @linoaddiego1039 4 ปีที่แล้ว

      @@chullenmn I found this link at cheaper price....www.aliexpress.com/item/Antenna-for-SIM800L-GPRS-TCP-IP-module/32467389771.html?spm=a2g0s.8937460.0.0.57812e0esA3ZBM

  • @julian_online
    @julian_online 4 ปีที่แล้ว

    Super cool project I already bought this module, I'm waiting for the other projects especially something related to BLE

  • @alfblack2
    @alfblack2 4 ปีที่แล้ว

    awsome! I already have 2 projects that could use this. Makes the whole system a whole lot more compact.

  • @AtomkeySinclair
    @AtomkeySinclair 4 ปีที่แล้ว +9

    Also: If this ESP module supported LoraWAN you could feasible deploy a large sensor net that used just a single service to report on tons of sensors.Think along the lines of SCADA for monitoring pressure lines or other industrial needs...

  • @neerajpankaj34
    @neerajpankaj34 2 ปีที่แล้ว

    Rui, you are doing excellent work..keep it up

  • @KrupalDesai
    @KrupalDesai 4 ปีที่แล้ว +7

    Hey, that's very informative! Thanks for sharing. You're doing a great job.
    Few questions.. I noticed it had battery connector. Does it run using 18650? Also can we charge battery using on board type C connector when on battery? Thanks!

  • @mazikabs6682
    @mazikabs6682 4 ปีที่แล้ว +3

    Very nice video with all needed informations. Thanks!
    You know, if there is any possibility to use esp32 with GPS lte module?

  • @avodonosov
    @avodonosov 4 ปีที่แล้ว

    Thank you for this video.
    When this board is powered via the JST connector, can it use 2G network?

  • @samanedu
    @samanedu 4 ปีที่แล้ว +2

    Thanks for this video.
    Have you been able to connect a micro SD card to the TTGO T-Call ESP32 SIM800L module since it uses pins 23 and 5 that belong to the SPI connection?

  • @DeJaWu
    @DeJaWu 4 ปีที่แล้ว

    Nice work! I was buy this board a month ago. Want to build portable GPS tracker for my vehicle.

  • @sarathkumar341
    @sarathkumar341 4 ปีที่แล้ว

    Planning to buy it. You made a video on the same day. :p

  • @bastib4791
    @bastib4791 3 ปีที่แล้ว +33

    A GPS Tracker tutorial with this board would be great!

    • @nema4dev
      @nema4dev 2 ปีที่แล้ว

      It would be awesome.... please listen to us

    • @msolano00
      @msolano00 ปีที่แล้ว

      I just wrapped up exactly that project. Happy to create a video and upload in the near future!

    • @chandannthakur
      @chandannthakur 8 หลายเดือนก่อน

    • @chandannthakur
      @chandannthakur 8 หลายเดือนก่อน

    • @chandannthakur
      @chandannthakur 8 หลายเดือนก่อน

      ​@nema4dev

  • @maximilianjohanneswurmitze7178
    @maximilianjohanneswurmitze7178 3 ปีที่แล้ว

    Great video! Thank you!
    Do you know, how OTA updates of the firmware can be done with this GPRS connection?

  • @mehdiniakinezhad9128
    @mehdiniakinezhad9128 4 ปีที่แล้ว +1

    Hi Rui,
    Thanks for this very helpful video.
    Do you know any ESP32 module which supports 3G or 4G?
    We do not have 2G in Australia.
    Thanks

  • @pedrobenevenutovaladares9734
    @pedrobenevenutovaladares9734 3 ปีที่แล้ว

    Amazing explanation

  • @eduardo9626
    @eduardo9626 4 ปีที่แล้ว +1

    Olá, você é de Portugal?
    Gosto demais do seu canal, você sempre tem tutoriais realmente interessantes, e normalmente é um dos primeiros a apresentar em vídeo as placas mais recentes e mais interessante da familia ESP(principalmente ESP32). Se eu realmente estiver certo e você for de Portugal, como seria bom se você deixasse uma legenda em portugues, pode ter certeza que aumentaria significativamente seus seguidores brasileiros.
    obrigado pelo seu trabalho

  • @sofianmoussaillon360
    @sofianmoussaillon360 4 ปีที่แล้ว +1

    I have a question about the power consumption. Do you have any data for your system? eg. If it does transmit data every 30 seconds? Thanks and well done !

  • @chullenmn
    @chullenmn 4 ปีที่แล้ว

    Great tutorial!

  • @irvinduronmejia6344
    @irvinduronmejia6344 3 ปีที่แล้ว

    Hello, thanks for this video, is posible to use TTGO SIM800 for restful purposes?

  • @JenishJain6
    @JenishJain6 4 ปีที่แล้ว

    Can you specify the details and type of antenna you are using or could you attach a link of where have you brought that?

  • @shakerileiwat4341
    @shakerileiwat4341 4 ปีที่แล้ว

    wonderful
    can we control t-call esp32 pins by mobile phone from a long distance ?

  • @leonardomoura9770
    @leonardomoura9770 3 ปีที่แล้ว +1

    Rui parabéns pelo projeto . Um outro projeto com esta board seria muito bem vindo ... Gostaria de ver um projeto onde este dispositivo envia a própria localizaçao (mapa) para o servidor

  • @alessiom
    @alessiom 2 ปีที่แล้ว

    Great video! Do you know if the module works with thingsmobile SIM?

  • @Gustavo_HO_Fontes
    @Gustavo_HO_Fontes 4 ปีที่แล้ว

    Hello, excellent video. How can I power on the board without cable usb-c or battery littio 3.7V ? There is no pin to power on using a regulator of voltage?

  • @ricardomonsalvegaitan4650
    @ricardomonsalvegaitan4650 2 ปีที่แล้ว

    Hello Rusi Santos, thanks for your videos, I am interested in many projects with ESP32 Sim800l

  • @Stoprool
    @Stoprool 3 ปีที่แล้ว

    Hey. Your video was really helpful in my project. But I am unable to connect to AWS IOT. Can you please make a video of ttgo t-call publishing data to AWS using gprs?

  • @pavelalexeev7387
    @pavelalexeev7387 4 ปีที่แล้ว

    Hello. What is the current consumption in deep sleep mode when using the battery in this project?

  • @seaha3750
    @seaha3750 4 ปีที่แล้ว

    Hi Friend thank you so much for this tutorial it helped me alot but can you explain me something.
    It is written that it should send sensor readings every 60 minutes but i didnt change anything and i get sensorreadings every 20 seconds or so why is this

  • @deepanshupandey2204
    @deepanshupandey2204 4 ปีที่แล้ว

    Hi!! Its a very nice tutorial. Could you please do for connecting this module with google iot core ?

  • @ClaudioBarca
    @ClaudioBarca 3 ปีที่แล้ว

    Hi Rui, I would change the antenna as you. What is the socket and model of your antenna used ? Thank's

  • @EdSpooky
    @EdSpooky 2 ปีที่แล้ว

    thanks for the video! can i use only wifi on this?... i want to make a teleprecense robot that can connect both wifi and 3g

  • @andyboy189
    @andyboy189 4 ปีที่แล้ว

    Have you been able to get this module working with AWS API Gateway. This requires connections on port:443 .

  • @Alacritous
    @Alacritous 4 ปีที่แล้ว +19

    I don't know about where you are, but here in Canada, the only carrier that supports GSM/GPRS (the SIM800L module technnology) is shutting down their GSM network next year and as of last year isn't accepting new activations. So this device won't work in Canada. GSM/GPRS is dead. Check your local cellular companies before ordering one of these things. The SIM7000 module supports LTE and is usable pretty much anywhere. It costs more though. the SIM800L is so cheap these days because no one wants them anymore.

    • @sparkiotai
      @sparkiotai 4 ปีที่แล้ว +2

      Alacritous eu still will keep 2G for next 10 years q

    • @ftonello1
      @ftonello1 3 ปีที่แล้ว

      you´re right about it

  • @phillipneal8194
    @phillipneal8194 4 ปีที่แล้ว +1

    Very cool. Thank you 8-)

  • @hansiehertzog6506
    @hansiehertzog6506 2 ปีที่แล้ว

    Please make a toutorial on the lilygo ttgo esp32 sim7600

  • @0peerat0
    @0peerat0 4 ปีที่แล้ว

    Is it possible to read the battery voltage using the integrated circuit on the board IP5306?

  • @acerarduino14
    @acerarduino14 4 ปีที่แล้ว +1

    Olá Rui, graças a este tutorial já consigo receber uma notificação sms quando um pino muda de estado , mas agora ando às voltas com o inverso, ou seja, enviando um sms para mudar um pino de estado. Tens alguma informação ou exemplo que me oriente ? Obrigado e parabéns pelos tutoriais que apresentas ! Estou a usar ESP32 TCAll TTGO. João Correia

  • @vitopos8153
    @vitopos8153 10 หลายเดือนก่อน

    Hello Rui! Thanks so much for the video! I wanted to ask you if you would know how to get the current time from the internet through the sim connection. I tried a lot of things already but none worked so far. I even found one of your tutorials online on how to use an ntp server on esp 32 through wifi, and it works, but through the sim it isnt working for me. Do you have any idea of what I can do? Thanks!!!

  • @akshita_9597
    @akshita_9597 ปีที่แล้ว

    can we connect esp cam to this board?

  • @174Lee
    @174Lee 4 ปีที่แล้ว +2

    Hey there Rui..awesome video, are you able to make a video of pushing data from Firebase to the ESP32 SIM800 via mobile network?

    • @Mindfield-Biosystems
      @Mindfield-Biosystems 3 ปีที่แล้ว

      Yes, I would be interested in that, too! :)

    • @sanketsupekar5048
      @sanketsupekar5048 3 ปีที่แล้ว

      @@Mindfield-Biosystems I am also...Please make video on TTGO-T-TCALL ESP32 SIM8000 Connect to Firebase ....

  • @djokinac
    @djokinac 11 หลายเดือนก่อน

    greeting
    has one question
    did you measure the consumption while it was in operation
    of course, both in idle state and in the state of sending measured data
    greetings and thanks in advance

  • @edwinardila2548
    @edwinardila2548 3 ปีที่แล้ว

    Thanks!

  • @DaaniCodes
    @DaaniCodes 7 หลายเดือนก่อน

    Is it legal to sell?

  • @estebanfranco954
    @estebanfranco954 3 ปีที่แล้ว +2

    Can i do it without the esp only with the sim800l? I am from argentina and here nobody sells this esp+sim800l option :(

  • @ashgork
    @ashgork 3 ปีที่แล้ว

    Hello,
    Can you plublish data with TTGO and, at the same time, send SMS ? Thank you in advance and sorry for my bad english...

  • @gamedivisionuk
    @gamedivisionuk 2 ปีที่แล้ว

    Im looking for something like this that will send temperature data over a cellular network using only battery power Im not sure the battery consumption sending data every 60 seconds ?

  • @agon4131
    @agon4131 2 ปีที่แล้ว

    Can you use a eSIM soldered to this board?

  • @yuvageosector8102
    @yuvageosector8102 3 ปีที่แล้ว

    If I want to connect a NRF24 module with ttgo-t-call then which pin should I chose, that the GSM connection will not interrupt.

  • @victortyshkun9198
    @victortyshkun9198 3 ปีที่แล้ว +1

    Hi, how to connect sim800l to esp32cam, and which lines of code are responsible for gprs connection?

  • @riskyeKA12
    @riskyeKA12 2 ปีที่แล้ว

    do you have a sample program for sending data to firebase using esp32 sim800l?

  • @gabrieldavid7664
    @gabrieldavid7664 3 ปีที่แล้ว

    Do you know how to connect to AWS? Amazing Video!

  • @najibulhaque5016
    @najibulhaque5016 3 ปีที่แล้ว

    Would i be able to upload low resolution video with this method? If not then what would be the best method to use the data plan of the simcard to upload video data to the cloud? thanks

  • @JNET_Reloaded
    @JNET_Reloaded 4 ปีที่แล้ว

    so the esp has gps aswell or just sim card and wifi?

  • @torstenkenning
    @torstenkenning หลายเดือนก่อน

    Can we use this SIM800L or other TTGOs AS low Power MQTT Proxy or even low bandwidth Hotspot for other IoT devices in reach?
    TTGO Uplink to another MQTT broker / Rest API
    TTGO offering itself adhoc WiFi or Bluetooth LE tethering

  • @skd5432
    @skd5432 ปีที่แล้ว

    is it possible to have an LCD / OLED connected to it.?

  • @edycole5543
    @edycole5543 4 ปีที่แล้ว

    Does esp32 not experience hang if used for a long period of time, such as for the early detection of river water levels to prevent flooding? Because this esp32 not suitable for industrial grade like plc or dcs, thanks

  • @bruceleethedragon6730
    @bruceleethedragon6730 ปีที่แล้ว

    I need help. I have some relays turned on with blynk over the internet with gsm...how can i make them turn off if the internet connection or the blynk connection is disconnected...and how do i make blynk refresh all the buttons and relays status on the app when it's recommended

  • @GEHDunedin
    @GEHDunedin ปีที่แล้ว

    How could this idea be extended for an ESP32-Cam board, do you know?

  • @joshuaorillaneda3433
    @joshuaorillaneda3433 ปีที่แล้ว

    Do you have a code on esp32 sim800l to firebase database?
    Thanks

  • @tonitrum4219
    @tonitrum4219 3 ปีที่แล้ว

    Where did you buy the antenna?

  • @ZoomtronicBlogspot
    @ZoomtronicBlogspot 4 ปีที่แล้ว

    I have spare SIM 800 and SIM 900 modules, will try to make it work in this config

  • @antoniogerson5068
    @antoniogerson5068 4 ปีที่แล้ว +2

    How do I do that with dht11

  • @kegaul1
    @kegaul1 3 ปีที่แล้ว

    What and where did you get antenna?

  • @0xCAFEF00D
    @0xCAFEF00D 4 ปีที่แล้ว

    Is it feasible to power from a battery?

  • @Bianchi77
    @Bianchi77 ปีที่แล้ว

    Creative video, thanks :)

  • @eduardojimenezprado7154
    @eduardojimenezprado7154 2 ปีที่แล้ว

    buenas tardes puedo hacerte una sugerencia de video como hacer que una placa ttgo esp32 sim800l sea un access point o tramita wifi para que se conecte otros placa esp32

  • @hansiehertzog6506
    @hansiehertzog6506 2 ปีที่แล้ว

    Can you please help with code jist to connect the board to the internet

  • @Reflejoo
    @Reflejoo 4 ปีที่แล้ว

    Hello, a question in the board manager in ArduinoIDE which model of ESP32 did you select? The TTGO T-Call does not appear :(

  • @Taki7o7
    @Taki7o7 ปีที่แล้ว

    "simcard without a plan"? So you need to refill credit when it stops to work?

  • @vishal01mehra
    @vishal01mehra 4 ปีที่แล้ว

    How can I know the data consumption per data upload?
    Can anyone tell me?

  • @MPElectronique
    @MPElectronique 4 ปีที่แล้ว

    Hello.
    Here we have LTE. I TRIED using it i cannot even Send an sms. Is it about the sim card??

  • @rubayetkhan2661
    @rubayetkhan2661 2 ปีที่แล้ว

    Can I power this board with 9v battery through battery connector?

  • @kevinroach9380
    @kevinroach9380 4 ปีที่แล้ว

    How expensive is the cellular for this type of application.

  • @ZekeTheWolf
    @ZekeTheWolf 3 ปีที่แล้ว

    can you connect a video source and make a wifi free ip camera?

  • @JimCoupeTQ
    @JimCoupeTQ 2 ปีที่แล้ว

    How much current does it drav nd how much bandwidth??

  • @carlosmendez2672
    @carlosmendez2672 2 ปีที่แล้ว

    I conected it,one red led Is on and the another Is blinking Is that a good signal my sim800 Is working properly?

  • @gkpgeo
    @gkpgeo 3 ปีที่แล้ว

    How many days battery vl come?

  • @Graham1904
    @Graham1904 4 ปีที่แล้ว

    Where do we find the project details to read the code?

  • @Gustavo_HO_Fontes
    @Gustavo_HO_Fontes 4 ปีที่แล้ว

    Olá, essa placa não possui o pino Vin? Ou seja, só é possível alimenta-la pelo conector usb-c, ou pelo conector 3.7V? Esse conector 3.7V só aceita baterias? Será que uma fonte regulada não seria possível? Muito Obrigado.

  • @thebestnigga174
    @thebestnigga174 3 ปีที่แล้ว

    The SIM card . Is it ok to use CDMA

  • @yasinsherif8875
    @yasinsherif8875 2 หลายเดือนก่อน

    but the sim800l support only 2g but how does it support data

  • @sahil___6312
    @sahil___6312 4 ปีที่แล้ว

    sir my TTGO T CALL is not properly working with blynk server
    It goes offline after some time and do not reconnect till the main power goes off
    So i request to you kindly make a video on A RELAY CIRCUIT BY SEND AND RECEIVE SMS as feedback using TTGO T CALL

  • @brcisna
    @brcisna 2 ปีที่แล้ว

    Hi Rui,, Thank You for this interesting data transfer concept with the TTGO board via SIM cellular networks . Appreciate it.
    Question What are your thoughts? To use one of these TTGO module for drone flying,,via GSM,rather than wifi 2.4 ghz (bypassing the wifi distance restriction)
    The drone broadcasts over wifi 2.4 ghz,,,so,, Could piggy backing one of these onto back of drone with small battery,, ( bridge wifi to GSM, in configs somehow) ,,wifi (TTGO) connects to drone wifi , with the drones SSID once TTGO is powered on,>>> TTGO sends data over GSM/cellular network to smart phone cellular connection,,,to wifi on phone so phone app could be used on phone same as wifi connected. The only thing cant figure out is how to make phone see this particular TTGO via GSM to gather data to the phones drone app ( to use the drones features via app such as follow me,, send video,,,photos erc) . . What am i missing? Thanks again

  • @Ed19601
    @Ed19601 4 ปีที่แล้ว +3

    Very interesting. Sadly though gsm2 is being phased out in many countries

    • @FuchsHorst
      @FuchsHorst 4 ปีที่แล้ว

      You can hook up any 3G/4G/5G modem to the ESP32. It's just serial.

    • @Ed19601
      @Ed19601 4 ปีที่แล้ว +1

      @@FuchsHorst obviously but this module has it built in and (for obvious reasons) it are the sim800 modules who are now cheap

    • @FuchsHorst
      @FuchsHorst 4 ปีที่แล้ว

      @@Ed19601 You are right, for your use case a regular ESP32 + specific GSM/3G/4G/… module would be better. Some Simcom-modules are pin-compatbile, so maybe there is an easy swap using a hot air gun possible.

    • @Ed19601
      @Ed19601 4 ปีที่แล้ว +1

      @@FuchsHorst technically possible but hardly worth the trouble. Other gsm module may not fit in situ. Better get esp32 plus valid GSM module

    • @FuchsHorst
      @FuchsHorst 4 ปีที่แล้ว

      @@Ed19601 At least here in Europe 2G will stay for a long time, at least with one active operator per country. 3G will be decommissioned sooner.

  • @NoNamenoonehere
    @NoNamenoonehere 4 ปีที่แล้ว

    Ooo very nice there lot of possibilities :)

  • @vishalpardeshi304
    @vishalpardeshi304 4 ปีที่แล้ว

    Can i connect it with arduino using i2c?

  • @Graham1904
    @Graham1904 4 ปีที่แล้ว +2

    You say that you don't use the I2C pins as the battery management uses it but surely I2C is a multi - device bus?

    • @nikitosmoscow7708
      @nikitosmoscow7708 4 ปีที่แล้ว

      Yes, up to 128 devices can work on one i2c bus.

  • @Trialbike
    @Trialbike 3 ปีที่แล้ว

    Rui, GPS inside?? thks

  • @duartesilva1701
    @duartesilva1701 3 ปีที่แล้ว

    Olá Rui, é possível usando "Módulo GPRS GSM Wireless SIM800L 5V V2.0"?

  • @marciosantana5493
    @marciosantana5493 4 ปีที่แล้ว

    Hi Ruy Santos. Can it be done using an ESP8266 and a SIM800l module apart?

    • @marciosantana5493
      @marciosantana5493 4 ปีที่แล้ว

      I mean an ESP8266 nodemcu and a SIM800l module working in separe boards. By the way, Nice job, man.

  • @ShivamJha00
    @ShivamJha00 2 ปีที่แล้ว

    Does it support 4G network?

  • @SanixDarker
    @SanixDarker 3 ปีที่แล้ว +1

    Looks like it's working only for 2G !?

  • @gr7480
    @gr7480 3 ปีที่แล้ว

    I have tried with blynk and it works perfectly, but with mqtt I can't. Would you have an example? Thank you so much for everything.

    • @gr7480
      @gr7480 3 ปีที่แล้ว

      @Rob Wilton interesting thanks. Can you communicate with this module and mqtt? I have tried many things but there is no way. With esp32 or esp8266or node red i don t have any problem. Sometimes it s a little thing. Thanks and bye.

  • @JimCoupeTQ
    @JimCoupeTQ 2 ปีที่แล้ว

    Most countries will end GSM network within a few years???

  • @gers-on9166
    @gers-on9166 2 ปีที่แล้ว

    152 / 5000
    I know you can receive data in the cloud with thingspeak, but how could I send data from that web page to esp32 using only gprs?

  • @Operative_lockpicker
    @Operative_lockpicker 2 ปีที่แล้ว

    Hay please is possible to make similar project but with voltage meter - every 6 hours will make measurment and send mi text message? Thank you...

  • @fabiandiaz4354
    @fabiandiaz4354 4 ปีที่แล้ว

    Can I use the ESPNOW protocol on this board??

    • @RuiSantosdotme
      @RuiSantosdotme  4 ปีที่แล้ว +1

      I haven't tested that, but ESP-NOW should work with any ESP32 compatible board

  • @ryanwakebradtelle8682
    @ryanwakebradtelle8682 3 ปีที่แล้ว

    I'm curious about building a 2 way video dog collar. I bet a pie 0 could work.

    • @ryanwakebradtelle8682
      @ryanwakebradtelle8682 3 ปีที่แล้ว

      Battery would be annoying, I bet a flexible battery inside a collar could power it for weeks. As long as it had a good sleep mode

  • @plcchileplc2061
    @plcchileplc2061 11 หลายเดือนก่อน

    tbe best

  • @georgeboydratcliff1036
    @georgeboydratcliff1036 4 ปีที่แล้ว

    Hi, what a great project - and I'm thrilled to have mine connecting and sending data to Thingspeak. However, the timer doesn't appear to be working - it just keeps restarting without any delay. I've checked esp_sleep_get_wakeup_cause() and it returns ESP_SLEEP_WAKEUP_TIMER. I'm using your code otherwise unchanged. Any ideas?

    • @georgeboydratcliff1036
      @georgeboydratcliff1036 4 ปีที่แล้ว

      Ok, I swapped to Platform.IO and that gave me much better error checking. It turned out to be the definition of uS_TO_S_FACTOR which should be defined as #define uS_TO_S_FACTOR 1000000ULL (note the ULL suffix). Otherwise, when you call esp_sleep_enable_timer_wakeup you get a an integer overflow (if you're using 3600 seconds anyway). When this happens, the timer just fires immediately