RobotKit API
Classes | Typedefs | Enumerations | Variables
RobotKit/RKDeviceConnection.h File Reference
#import <Foundation/Foundation.h>

Go to the source code of this file.

Classes

class  RKDeviceConnection
 A RKDeviceConnection object manages a robot's connection. More...

Typedefs

typedef enum RKConnectionState RKConnectionState

Enumerations

enum  RKConnectionState {
  RKConnectionStateOffline, RKConnectionStateJumpMainApp, RKConnectionStateJumpToBootloader, RKConnectionStateMainAppCorrupt,
  RKConnectionStateJumpToBootloaderFailed, RKConnectionStatePing1, RKConnectionStatePing2, RKConnectionStateGetBluetoothInfo,
  RKConnectionStateOnline
}

Variables

NSString *const RKDeviceConnectionOnlineNotification
NSString *const RKDeviceConnectionOfflineNotification
NSString *const RKDeviceConnectionMainAppCorruptNotification

Detailed Description


Typedef Documentation

Defines a type for connection state enumerations


Enumeration Type Documentation

Enumerations for the connection state as communications are established with the robot, and when it goes off line.

Enumerator:
RKConnectionStateJumpMainApp 

The communcation link with a robot is not valid.

RKConnectionStateJumpToBootloader 

The robot is being commanded to go to the main app.

RKConnectionStateMainAppCorrupt 

The robot is being commanded to go to the bootloader.

RKConnectionStateJumpToBootloaderFailed 

The robot reported a main app corrupt error, and is stuck in the bootloader.

RKConnectionStatePing1 

Failed to go to bootloader, and is still in the app.

RKConnectionStatePing2 

A ping was issued to test communications.

RKConnectionStateGetBluetoothInfo 

A second ping issued to test communications before giving up.

RKConnectionStateOnline 

A get bluetooth info was sent to the robot.

The robot is responding to communications and ready for commands to be sent.


Variable Documentation

Notification sent when main firmware application is corrupt and can not be run on the device.

Notification sent when the connection is opened, and messages to the device

Notification sent when the connection is opened, and messages can be sent to the ball.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties