Azurit pfodApp protocol: Unterschied zwischen den Versionen

Aus www.wiki.ardumower.de
Wechseln zu: Navigation, Suche
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
 
Example communication:
 
Example communication:
  
1. App requests main menu: {.}
+
1. App requests main menu:  
2. Robot sends main menu to App: {.title`1000|key1~text1|key2~text2|key3~text3}
+
{.}
    The App will visualize the main menu like this:
+
 
 +
2. Robot sends main menu to App:  
 +
{.title`1000|key1~text1|key2~text2|key3~text3}  
 +
The App will visualize the main menu like this:
  
 
     title
 
     title
Zeile 14: Zeile 17:
 
     [text3]
 
     [text3]
  
3. User clicks menu item 'text1', App sends back to robot the corresponding command: {key1} and the robot will execute the  
+
3. User clicks menu item 'text1' and App sends back to robot the corresponding command:  
command or send another menu to App (if item is another menu).
+
{key1}  
 +
and the robot will execute the command or send another menu to App (if item is another menu).
  
 
You can log the communication to a file (folder 'pfodAppRawData' or 'ArduRemote') on your Android device. For the ArduRemote, press the 'Android menu button' on your device and choose 'Enable logging'.
 
You can log the communication to a file (folder 'pfodAppRawData' or 'ArduRemote') on your Android device. For the ArduRemote, press the 'Android menu button' on your device and choose 'Enable logging'.

Aktuelle Version vom 13. Juli 2017, 09:12 Uhr

The communication protocol between robot and Android app (the 'pfodSpecification') is defined here: http://www.forward.com.au/pfod/.

All menus (menu items, sliders, buttons) are created inside the robot. The App only visualizes the created menus, and sends back a command if a menu item was clicked by the user.

Example communication:

1. App requests main menu:

{.}

2. Robot sends main menu to App:

{.title`1000|key1~text1|key2~text2|key3~text3} 

The App will visualize the main menu like this:

   title
   [text1]
   [text2]
   [text3]

3. User clicks menu item 'text1' and App sends back to robot the corresponding command:

{key1} 

and the robot will execute the command or send another menu to App (if item is another menu).

You can log the communication to a file (folder 'pfodAppRawData' or 'ArduRemote') on your Android device. For the ArduRemote, press the 'Android menu button' on your device and choose 'Enable logging'.


Fore details on all Azurit menus, see the Ardumower code:

For other pfodApp example code, see here: