RawMode

From RasPiConnect/ArduinoConnect
Jump to: navigation, search

Raw Mode Description

Raw Mode is used for lightweight computers with little RAM and/or programming space. There is no provided example server for Raw Mode.

Raw mode sends requests in the same way Arduino JSON requests are sent. There is no bundling of requests to the same server. The App sends one request at a time and then waits for the response. Contrast this to Raspberry Pi XML requests which are sent as a bundle of XML requests to the same server and then the App waits for the entire response bundle to be returned. Raw Mode issues are not supported by MiloCreek but questions are welcome for Raw Mode in the Support Forums. Raw Mode requests and responses are shown in the Debug Window Tab.

Raw Mode Output Data Description (from App to Computer)

Raw mode sends a single line pre request to the server via an HTTP POST connection. It is formatted as a comma delimited single line of values:

The format is:

"ObjectID, ObjectName, ObjectServerID, ObjectFlags, ObjectAction, Password"

Where:

ObjectID: The internal App identifier of the actual RasPiConnect Control Object sending the request. This identifies the sending control.

ObjectType: The Interface ID for the control as shown in the "Controls: Input And Response" section of this manual

ObjectName: The Name of the control object as assigned by the user when the control is added. It will change depending on the control.

ObjectFlags: Any optional flags for the object. Currently reserved for future use. Always 0 as of 9/9/2013.

ObjectAction: What action is requested by the control

The default action for each ObjectType is given below:

- REMOTE_WEBVIEW_UITYPE:
- PICTURE_REMOTE_WEBVIEW_UITYPE:
- SINGLE_LED_DISPLAY_UITYPE:
- SPEEDOMETER_UITYPE:
- VOLTMETER_UITYPE:
- SERVER_STATUS_UITYPE:
- FM_BLINK_LED_UITYPE:
- TEXT_DISPLAY_UITYPE:
- BARMETER_UITYPE:

"GETVALUE"

- SEND_TEXT_UITYPE:

"Text to be sent to computer"
           

- ACTION_BUTTON_UITYPE:
- FEEDBACK_ACTION_BUTTON_UITYPE:

"SINGLEPUSH"


- FILE_DIRECTORY_CALL:
- FILE_WRITE_CALL:
- FILE_READ_CALL:

"FETCHDIRECTORY"  -- not used by Apps


Password: MD5 coded password as set in the App

Raw Mode Input Data Description (From Computer to the App)

The Raw Mode data format (from Computer to the App) is a comma delimited single line of text:

The format is:

"ObjectID, ObjectType, ObjectServerID, ObjectFlags, Response, Password"

Where:

ObjectID: The internal App identifier of the actual RasPiConnect Control Object that originally sent the request. This identifies the sending control.

ObjectType: The Interface ID for the control as shown in the "Controls: Input And Response" section of this manual

ObjectFlags: Any optional flags for the object. Currently reserved for future use. Always 0 as of 9/9/2013.

Response: The response sent by the server matching the ObjectType. The required formats for each ObjectType is given in the "Controls: Input and Response" section of the documentation.

Password: MD5 coded password as set in the App

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox