Kuwait
Asked — Edited

ARC Mobile App And Firebase

Hi:D I have a simple question please

when making ARC mobile app; can i connect the app with Firebase Realtime Database to read and store variables? i want to use those variables to start and stop scripts...

thank you:)


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#17  

Quote:

by "parse the data" do you mean to use toString() function?

Someone else will have to answer. I have not done a lot of string functions in ARC, I just recognize what the issue is. Basically, you will need to use functions that extract just the answer of your query from the returned web page.

Quote:

do you mean I should only make HTML file and write text into it? but then how does this is considerd as a database? we will be reading line by line how will i know where exactly to store or which line exactly will have the data i need.. :/
No, I am saying that your web front end to the database needs to return a simple easily parsed page when you send your query via httpget. If you are getting a lot of extraneous data, it is probably mostly stuff for displaying the return in nice human readable format, with colors and boxes and stuff (if you have a publicly accessible example, I can take a look and be more specific). What you want it an easily machine readable return because no human will be looking at it directly.

I won't quote your third answer. Good enough reason.

Alan

#18  

Quote:

ARC is far more extensible in Windows, and it provides two different web servers that can be used to create a nice mobile interface as long as the robot, Windows computer, and mobile device are on the same network

hello, by "mobile interface" do you mean the one we find in ARC: Project >> add control >> mobile ? do you know if i can create my own mobile interface plugin? so i can provide it with database connections and display videos on the mobile screen? i'm currently working on making a firebase plugin; so if there is a way i can create a mobile interface out of this plugin, it would be really great and helpful! blush

#19  

No, I meant the Http server or Http server (custom) . You can design a web page hosted by ARC on the PC and accessed by your mobile browser. By doing this, you have the best of both worlds. The full power of the PC running the app, scripts, and plugins, and a mobile interface to access it.

The object you mention creates a mobile project for ARC Mobile (either iOS or Android) but it is somewhat limited, like no plugins.