Comments on: ESP32: Getting Started with Deta Base (Unlimited and Free Database for Developers) https://randomnerdtutorials.com/esp32-deta-base-database-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 31 Jul 2023 08:48:44 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: HY https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-852305 Mon, 31 Jul 2023 08:48:44 +0000 https://randomnerdtutorials.com/?p=114323#comment-852305 In reply to Kushagra.

PLS ı need esp8266 library.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-851423 Thu, 27 Jul 2023 13:37:54 +0000 https://randomnerdtutorials.com/?p=114323#comment-851423 In reply to Kushagra.

Hi.
Thank you so much for the clarification.
Regards,
Sara

]]>
By: Kushagra https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-850154 Tue, 25 Jul 2023 13:50:06 +0000 https://randomnerdtutorials.com/?p=114323#comment-850154 In reply to fady.

Hello, I am the author of the library.

Deta had a massive overhaul as a service, and I haven’t gotten around to updating this library to work with the new version, although I’m very confident it’s straightforward if you are familiar with using REST APIs with ESP32.

Take a look here: https://deta.space/docs/en/use/your-data/collections

And here: https://deta.space/docs/en/build/reference/http-api/base

Once I get time, I’ll update this library to work with the new version and request the admins of this page to update this guide as well.

]]>
By: fady https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-850014 Tue, 25 Jul 2023 09:58:02 +0000 https://randomnerdtutorials.com/?p=114323#comment-850014 Hi SARA
i have tried the detabase arduino sketch without any change of course
with my own wifi credentials and the project id and the Data key that i got
from Deta space
i am using an ESP32 WEMOS
The ESP32 did connect to deta with :Reply: {“errors”:[“Unauthorized”]}.
My question is the detaBaseArduinoESP32 library still works with the new version of Deta Space ?

Best regards

]]>
By: Terry Reynolds https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-786969 Thu, 29 Sep 2022 18:04:08 +0000 https://randomnerdtutorials.com/?p=114323#comment-786969 Hi, me again !
I managed to get the prog to compile by changing
char* detaBaseName = “TR_BASE”;
to
char* detaBaseName = (char*)”TR_BASE”;

but I still get
Reply: {“errors”:[“Unauthorized”]}

on every operation !

]]>
By: Terry Reynolds https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-786925 Thu, 29 Sep 2022 15:03:37 +0000 https://randomnerdtutorials.com/?p=114323#comment-786925 Hi,
I get the following warning with all 3 char* variables –
warning: ISO C++ forbids converting a string constant to ‘char‘ [-Wwrite-strings]
char
apiKey = “a@hdx047_Tbi8xxxxxxxxxxxxxxxxxxxxxxxxxxxxx”;
So when I run the program, unsurprisingly I get ‘unauthorised’ displayed.
Where am I going wrong please ?
I have tried with Arduino 2.0 and Arduino 1.81.16 – same problem.

Many thanks

Terry

]]>
By: Michiel https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-785918 Sun, 25 Sep 2022 16:26:43 +0000 https://randomnerdtutorials.com/?p=114323#comment-785918 In reply to Sara Santos.

the problem was with the microcontroller. I was experimenting with an ESP32-C3. With an “old” ESP32 there is no problem when I use these libraries together (sofar)

]]>
By: Gunduz https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-785437 Fri, 23 Sep 2022 09:49:24 +0000 https://randomnerdtutorials.com/?p=114323#comment-785437 How do databases work

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-785188 Thu, 22 Sep 2022 10:27:08 +0000 https://randomnerdtutorials.com/?p=114323#comment-785188 In reply to Michiel.

What specific errors do you get?

]]>
By: Michiel https://randomnerdtutorials.com/esp32-deta-base-database-arduino/#comment-785009 Wed, 21 Sep 2022 15:03:25 +0000 https://randomnerdtutorials.com/?p=114323#comment-785009 In reply to Sara Santos.

I hope someone here does, and knows how to fix it.
And another question (if you don’t mind)
I tried adding another Database, but that gave a lot of errors to my ESP32-C3

DetaBaseObject detaObj(client, detaID, detaBaseName, apiKey, true);
DetaBaseObject detaObj2(client, detaID, detaBaseName2, apiKey, true);

does this mean I can’t make two objects? of did I forgot to change something in the naming?

The idea is to have one database for all the short burst
and one for the daily totals.

]]>