I am doing a project about parking reservation and I am getting help from Arduino and Firebase while doing this project. The reason I am getting help from Firebase is that the application does not give the same password to the user that day. And I will connect it to Arduino via Bluetooth and make a password door mechanism. But I am having a lot of problems. Can you help me?
(I couldn't upload photos of Arduino codes and circuit photos, only 5 of them can be uploaded)
The Firebase component does not work with servers outside the US.
You have an .aix file in your Media folder?
That's not how you install extensions.
You can copy the text of your sketch code and paste it into a board post.
Surround it with ``` lines to keep indentation.
Thanks for your comment, but the problem is not only with Firebase. mit app inventor needs to work with Firebase and generate a password and send it to Arduino, but it also has problems sending it. You can also look at the Arduino codes.
This looks wrong, even though I can't read the variable names.
You set the same variable to two different variables in a row.
The second operation wipes out the first.
Then you set the variable fark to the difference between two variables, one of which you never update, and the other (Clock.Now() is not a number. You need Clock.SystemTime if you want milliseconds from 1970.
Read the tool tips on the blocks.
In your procedure, you make the same mistake with Clock.Now(). Such objects don't store well. Use Clock.SystemTime instead, which can be manipulated with math blocks easily.
Here's another contradiction.
Look how you store into Firebase, versus how you retrieve from Firebase:
Here you are storing under a tag consisting of k...r followed by a six digit random number.
Here you ask for the value under tag k...r without any suffix.
You never posted such a tag/value pair.
Here you are receiving from Firebase, but not testing the tag to see what and for who the accompanying value is. I see you posting to different tags elsewhere in your code.
Your code eats the incoming data blindly.
I also see you testing for a value of blank (or empty) text in the incoming Firebase data.
You never use blank as a returned value option and never post that value.
Thank you very much. I will apply your suggestions.