Good afternoon,
Hoping someone might be able to point me in the right direction, I am using the Arduino to handle pan tilt tasks for a camera, which basically sets the camera taking a series of photos whilst panning and tilting and it generates an XML file using XMLWriter which is later used to import into a photo stitching software.
Rather than have a display, I have opted for Bluetooth control of the device, which works fine. I was going about programming the loop which runs subroutines based on what is 'seen' from the serial port, for example if it sees 360P it assumes that the user is going to do a 360 degree spherical panorama and also grabs a latitude and longitude (e.g. 360P,-38.1234,145.6789) which goes into the XML file.
I also have another few strings similar in nature to that, but where the variables change, and there may be a few different other variables added or removed.
Is there a better way to be sending this info, the end goal is to have a simple App on a phone which triggers it so I would like to pass a lot more info across to the sub routines, but I am not sure if there is a better way to do this as it becomes too klunky if I do comma delimited stuff all the time.
Does the Arduino have enough grunt for a simple JSON style structure?