Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / firebase extra key

Author
Message
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 26th Feb 2020 20:05

http2 = CreateHTTPConnection ( )
SetHTTPHost( http2, "myprojectname.firebaseio.com", 1 )

do

SendHTTPRequestASYNC( http2,"school.json",'{"teacher":"student"}')

Print( ScreenFPS() )
Sync()
loop


============================================ in firebase

school
-M125-eYEF8iedelqlUu
teacher: "student"
-M125-zYRFsTk5McAd-z
teacher: "student"



why this extra key came from ? M125-eYEF8iedelqlUu . please solve this thanks



fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 26th Feb 2020 22:20
Quote: "SendHTTPRequestASYNC( http2,"school.json",'{"teacher":"student"}')"

why is that in a loop

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 27th Feb 2020 22:41
http2 = CreateHTTPConnection ( )
SetHTTPHost( http2, "myprojectname.firebaseio.com", 1 )

do
xpos=xpos+1
SendHTTPRequestASYNC( http2,"car.json",'{"Position":"xpos"}')

Print( ScreenFPS() )
Sync()
loop

I continuously sent a value to firebase database thats why its in loop
============================================ in firebase

car
-M125-eYEF8iedelqlUu
Position: "201"
-M125-zYRFsTk5McAd-z
Position: "315"


But my question is where this extra key came from ? M125-eYEF8iedelqlUu . please solve this thanks

I want =>
car
Position: "315"
------
and then if i sent value then just the value 315 replace with new value .
But value goes to firebase and saved but with extra random key . Don't know why ?
if possible please solve . and thanks

Login to post a reply

Server time is: 2024-04-20 09:24:41
Your offset time is: 2024-04-20 09:24:41