diff --git a/Blinker/project.properties b/Blinker/project.properties index 113acb7..f049142 100644 --- a/Blinker/project.properties +++ b/Blinker/project.properties @@ -8,4 +8,4 @@ # project structure. # Project target. -target=android-9 +target=android-10 diff --git a/BlinkerSchema/bundle.properties b/BlinkerSchema/bundle.properties index 2cd9f02..c41e03e 100644 --- a/BlinkerSchema/bundle.properties +++ b/BlinkerSchema/bundle.properties @@ -6,5 +6,5 @@ com.emmoco.framework.Properties.schemaDestinationDirectory = out com.emmoco.framework.Properties.serverAPIToken = com.emmoco.framework.Properties.align16 = 2 com.emmoco.framework.Properties.align32 = 4 -com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/emmoco/BlinkerSchema/schema.ems +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/durex/BlinkerSchema/schema.ems com.emmoco.framework.Properties.toolVersion = 12.0.0.201211010336 diff --git a/BlinkerSchema/out/Blinker-TODO.c b/BlinkerSchema/out/Blinker-TODO.c index ea423a0..c4ea923 100644 --- a/BlinkerSchema/out/Blinker-TODO.c +++ b/BlinkerSchema/out/Blinker-TODO.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T14:33:35T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T15:40:37T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "Blinker.h" diff --git a/BlinkerSchema/out/Blinker.c b/BlinkerSchema/out/Blinker.c index 98bf132..593137e 100644 --- a/BlinkerSchema/out/Blinker.c +++ b/BlinkerSchema/out/Blinker.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T14:33:35T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T15:40:37T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "Em_Message.h" @@ -19,7 +19,7 @@ typedef struct Em_App_Message { const uint8_t Em_App_hash[] = {194, 8, 191, 173, 237, 198, 193, 165, 88, 202, 74, 246, 70, 59, 102, 128, 12, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))}; -const uint8_t Em_App_build[] = {20, 116, 249, 224, 69, 1, 0, 0}; +const uint8_t Em_App_build[] = {191, 211, 54, 225, 69, 1, 0, 0}; #define Em_App_APP_RESOURCE_COUNT 4 #define Em_App_SYS_RESOURCE_COUNT 8 diff --git a/BlinkerSchema/out/Blinker.h b/BlinkerSchema/out/Blinker.h index 73ec5d7..8d83ba0 100644 --- a/BlinkerSchema/out/Blinker.h +++ b/BlinkerSchema/out/Blinker.h @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T14:33:35T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-05-09T15:40:37T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #ifndef Blinker__H diff --git a/BlinkerSchema/out/Blinker.zip b/BlinkerSchema/out/Blinker.zip index b2c2691..57ba4e1 100644 --- a/BlinkerSchema/out/Blinker.zip +++ b/BlinkerSchema/out/Blinker.zip diff --git a/BlinkerSchema/out/blinker.json b/BlinkerSchema/out/blinker.json index 2850ac2..6c4c7e2 100644 --- a/BlinkerSchema/out/blinker.json +++ b/BlinkerSchema/out/blinker.json @@ -134,16 +134,16 @@ "name": "Blinker", "$$md5": "73d98dc6eb4c17eea377d5969c0e49d2", "build": [ - 20, - 116, - 249, - 224, + 191, + 211, + 54, + 225, 69, 1, 0, 0 ], - "date": "2014-05-09T14:33:35T", + "date": "2014-05-09T15:40:37T", "maxAlign": 2, "maxSize": 20, "version": "1.0.0" diff --git a/DUREX/bundle.properties b/DUREX/bundle.properties index c30574f..0bdaa4c 100644 --- a/DUREX/bundle.properties +++ b/DUREX/bundle.properties @@ -6,5 +6,5 @@ com.emmoco.framework.Properties.schemaDestinationDirectory = out com.emmoco.framework.Properties.serverAPIToken = com.emmoco.framework.Properties.align16 = 2 com.emmoco.framework.Properties.align32 = 4 -com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/emmoco/DUREX/schema.ems +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/durex/DUREX/schema.ems com.emmoco.framework.Properties.toolVersion = 12.0.0.201211010336 diff --git a/DUREX/out/DUREX-TODO.c b/DUREX/out/DUREX-TODO.c index 641fcf7..9d463b6 100644 --- a/DUREX/out/DUREX-TODO.c +++ b/DUREX/out/DUREX-TODO.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:19:51T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "DUREX.h" diff --git a/DUREX/out/DUREX.c b/DUREX/out/DUREX.c index 48b2aea..dcf5eee 100644 --- a/DUREX/out/DUREX.c +++ b/DUREX/out/DUREX.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:19:51T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "Em_Message.h" @@ -19,7 +19,7 @@ typedef struct Em_App_Message { const uint8_t Em_App_hash[] = {218, 74, 41, 73, 107, 164, 154, 232, 180, 185, 128, 44, 30, 56, 49, 63, 12, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))}; -const uint8_t Em_App_build[] = {221, 204, 35, 225, 69, 1, 0, 0}; +const uint8_t Em_App_build[] = {94, 212, 54, 225, 69, 1, 0, 0}; #define Em_App_APP_RESOURCE_COUNT 6 #define Em_App_SYS_RESOURCE_COUNT 8 diff --git a/DUREX/out/DUREX.h b/DUREX/out/DUREX.h index f1a1abc..54685da 100644 --- a/DUREX/out/DUREX.h +++ b/DUREX/out/DUREX.h @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:19:51T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.DUREX on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #ifndef DUREX__H diff --git a/DUREX/out/DUREX.zip b/DUREX/out/DUREX.zip index fcb957f..000b56a 100644 --- a/DUREX/out/DUREX.zip +++ b/DUREX/out/DUREX.zip diff --git a/DUREX/out/durex.json b/DUREX/out/durex.json index 5d4220a..044e57f 100644 --- a/DUREX/out/durex.json +++ b/DUREX/out/durex.json @@ -147,16 +147,16 @@ "name": "DUREX", "$$md5": "275479fd2e9dfc29825d3d8004f33029", "build": [ - 221, - 204, - 35, + 94, + 212, + 54, 225, 69, 1, 0, 0 ], - "date": "2014-05-09T15:19:51T", + "date": "2014-05-09T15:40:38T", "maxAlign": 2, "maxSize": 240, "version": "1.0.0" diff --git a/EmmocoMobileFramework/Assets/system.json b/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..9a010ef --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..ba5af0e --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..dd6e394 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..728fb63 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..1ec5d02 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..191b7c2 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..3d2fe9d --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..5664611 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..c11d4fc --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..6f0c494 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..6d9f4a5 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..00d93a7 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/FileValue.html b/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..eb1631b --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/IntValue.html b/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..388c024 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..45cd8c7 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/StringValue.html b/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3e78c69 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/StructValue.html b/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..7ede588 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..ae0b7ad --- /dev/null +++ b/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..a87598f --- /dev/null +++ b/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..1fd1a67 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..dda1578 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..d087498 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..a418b14 --- /dev/null +++ b/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/css/styles.css b/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/EmmocoMobileFramework/Docs/css/stylesPrint.css b/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/hierarchy.html b/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..7ba1b97 --- /dev/null +++ b/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/EmmocoMobileFramework/Docs/img/button_bar_background.png b/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/EmmocoMobileFramework/Docs/img/disclosure.png b/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/EmmocoMobileFramework/Docs/img/disclosure_open.png b/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/EmmocoMobileFramework/Docs/img/library_background.png b/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/EmmocoMobileFramework/Docs/img/title_background.png b/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/EmmocoMobileFramework/Docs/index.html b/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..4bb66c0 --- /dev/null +++ b/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/EmmocoMobileFramework/Headers/EMChecksum.h b/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/EmmocoMobileFramework/Headers/EMConnection.h b/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/EmmocoMobileFramework/Headers/EMConnectionManager.h b/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/EmmocoMobileFramework/Headers/EMConnectionType.h b/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/EmmocoMobileFramework/Headers/EMFramework.h b/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/EmmocoMobileFramework/Headers/EMResourceValue.h b/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/EmmocoMobileFramework/Headers/EMSchema.h b/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/EmmocoMobileFramework/Headers/EMSerialPacket.h b/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/EmmocoMobileFramework/Headers/EMTypes.h b/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/EmmocoMobileFramework/README.md b/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..10c6a9a --- /dev/null +++ b/EmmocoMobileFramework/README.md @@ -0,0 +1,147 @@ +# Introduction + +## What is the Emmoco Mobile Framework? + + The Emmoco Mobile Framework allows you to control any Emmoco-powered embedded system with your phone. The framework exposes a simple interface, abstracting Apple’s CoreBluetooth.framework, to facilitate rapid prototyping and development. + +## Why not just use Core Bluetooth? + + Getting data from an embedded system to a mobile device is no small task, Bluetooth quirks aside. There are bit-alignment issues, data interpretation issues, and a multitude of failure scenarios that must be handled. You must also work closely with the embedded system developer to define the communication contract. + + By using Emmoco’s ecosystem, all of these problems are resolved for you. You can spend 0% of your time worrying about how to get data to and from the embedded system and 100% of your time building a great mobile app. + +## Schemas - The contract between you and the embedded system + + All communication between a phone and an embedded system happens according to a communication contract, or *schema*. Here is an example schema: + + version = "1.0.0" + description = "starter application" + schema MyApp { + uint8 myFavoriteNumber + } + + You can see the embedded system has a single resource, * myFavoriteNumber*. It is a one-byte unsigned integer. +On http://em-hub.com, you can download the “Mobile Schema” for any schema, which is a JSON file. + +## Adding the Mobile Framework to your iOS project + +### Download the mobile framework + + You can download the latest version of the mobile framework from http://em-hub.com. + +### Library dependencies + + Add the following frameworks to your list of “Link Binary with Libraries” in your project’s build phases. + + • Corebluetooth.framework + • libEMFramework.a + +### Add the framework and headers to your project + + Copy all the files in the “Headers” directory of the mobile framework into your project. + +### Add the system and application Schemas to your project + + To add a schema to your project, simply copy it into your application bundle. The system.json schema is required. It can be found in the “Assets” folder of the mobile framework. Then, copy the schemas for your application over to the project. + +That’s it! You’re ready to go. + +## Using Emmoco’s mobile framework + +### Setup + + To begin using the mobile framework, add the following code to your application delegate’s `application:didFinishLaunchingWithOptions:` + + [[EMConnectionListManager sharedManager] startUpdating]; + +This tells the framework to begin scanning for available devices. + +### Discovering available devices + + The class `EMConnectionListManager` is responsible for discovering devices in your proximity that are available for connection. To get a list of available devices, look at the property `devices`. + + If you want to get updates whenever devices are discovered or lost, you can use Key Value Observing (KVO). + + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@“devices” options:0 context:NULL]; + +Each object in the devices array is an instance of `EMDeviceBasicDescription`. This class represents an embedded system. + +### Trouble shooting + +**Issue**: your embedded device is turned on, but not in the devices array + +**Solution**: Make sure the schema (json file) for that device is in your project’s bundle. You can download Em-Browser from the App Store to check the schema hash on the embedded system and compare it to the schema you’re using in the app. + +**Issue**: your KVO method isn’t being called when the devices array changes + +**Solution**: Make sure you called startUpdating on `EMConnectionListManager`. + +## Connecting to a device + + You’ve got your `EMDeviceBasicDescription` and you’re ready to connect. Where `EMConnectionListManager` is responsible for discovering available devices, `EMConnectionManager` is responsible for managing a single connection. + +Here is some sample code for connecting to a device: + + EMDeviceBasicDescription *device = … + [[EMConnectionManager sharedManager] connectDevice:device onSuccess:^{ + NSLog(@“Successfully connected!”); + } onFail:^(NSError *error) { + NSLog(@“%@“, [error localizedDescription]); + }]; + + The Emmoco Mobile Framework currently only supports a single connection at a time. To get the currently connected device from anywhere in your application, you can look at the `connectedDevice` property on the `EMConnectionManager`. + + There are eight possible connection states. Refer to `EMConnection.h` to see the full list. `connectionState` is KVO compliant. + +## Reading and writing values + + Once the `connectionState` property is set to `EMConnectionStateConnected`, you are ready to read and write values. + +To read a value, call: + + [[EMConnectionManager sharedManager] readResource:@“resourceName” successBlock:^(id readValue) { + // handle successful read + } failBlock:^(NSError *error) { + // handle error + }]; + + The string you pass in for the resource name should match the name of the property on your mobile schema. + +To write a value, call: + + [[EMConnectionManager sharedManager] writeValue:@“Hello” toResource:@“resourceName” onSuccess:^{ + // handle successful write + } onFail:(NSError *error) { + // handle error + }]; + + The object of type id for writing and returned when reading can be one of the following types: + NSNumber, NSString, NSArray, NSDictionary, NSData. + + The types that you pass in and receive depend on the resource type. + +NSNumber - floats, integers +NSString - enums, strings +NSArray - Arrays +NSDictionary - Structs +NSData - files + +## Receiving indicators + + There are times when your application needs to be notified of events from the embedded system. These events are delivered through NSNotificationCenter. + + To get indicator notifications, subscribe to the notification like this: + + [[NSNotificationCenter defaultCenter] addObserverForName:kEMConnectionDidReceiveIndicatorNotificationName object:nil queue:[NSOperationQueue currentQueue] usingBlock:^(NSNotification *note) { + NSDictionary *userInfo = [note userInfo]; + NSString *indicatorResourceName = [userInfo objectForKey:kEMIndicatorNameKey]; + id value = [userInfo objectForKey:kEMIndicatorResourceValueKey]; + // handle resource name and value + }]; + + The value of the indicator is of the same type that would be returned reading the resource (NSString, NSNumber, NSArray, NSDictionary, NSData). + +## Reading information on broadcast + +Some embedded systems choose to broadcast information with their BLE broadcast packets. You can get this information without actually connecting to the embedded system. +When you get an instance of `EMDeviceBasicDescription` from the devices property of `EMConnectionListManager`, you can look at the `advertiseObject` property. This object is a Foundation object representing the value of the broadcasted resource. If the device doesn’t have any broadcast information, this property will be nil. \ No newline at end of file diff --git a/FileTestSchema/bundle.properties b/FileTestSchema/bundle.properties index 528d961..e756efa 100644 --- a/FileTestSchema/bundle.properties +++ b/FileTestSchema/bundle.properties @@ -6,5 +6,5 @@ com.emmoco.framework.Properties.schemaDestinationDirectory = out com.emmoco.framework.Properties.serverAPIToken = com.emmoco.framework.Properties.align16 = 2 com.emmoco.framework.Properties.align32 = 4 -com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/emmoco/FileTestSchema/schema.ems +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/durex/FileTestSchema/schema.ems com.emmoco.framework.Properties.toolVersion = 12.0.0.201211010336 diff --git a/FileTestSchema/out/FileTest-TODO.c b/FileTestSchema/out/FileTest-TODO.c index fa5519f..e8c29be 100644 --- a/FileTestSchema/out/FileTest-TODO.c +++ b/FileTestSchema/out/FileTest-TODO.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "FileTest.h" diff --git a/FileTestSchema/out/FileTest.c b/FileTestSchema/out/FileTest.c index 4976b76..f7361f9 100644 --- a/FileTestSchema/out/FileTest.c +++ b/FileTestSchema/out/FileTest.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "Em_Message.h" @@ -19,7 +19,7 @@ typedef struct Em_App_Message { const uint8_t Em_App_hash[] = {15, 80, 19, 228, 59, 147, 90, 236, 176, 26, 167, 221, 86, 191, 95, 150, 12, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))}; -const uint8_t Em_App_build[] = {32, 117, 249, 224, 69, 1, 0, 0}; +const uint8_t Em_App_build[] = {235, 212, 54, 225, 69, 1, 0, 0}; #define Em_App_APP_RESOURCE_COUNT 2 #define Em_App_SYS_RESOURCE_COUNT 8 diff --git a/FileTestSchema/out/FileTest.h b/FileTestSchema/out/FileTest.h index e96d2d3..ea32125 100644 --- a/FileTestSchema/out/FileTest.h +++ b/FileTestSchema/out/FileTest.h @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FileTest on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #ifndef FileTest__H diff --git a/FileTestSchema/out/FileTest.zip b/FileTestSchema/out/FileTest.zip index 05edc4a..70d3c8a 100644 --- a/FileTestSchema/out/FileTest.zip +++ b/FileTestSchema/out/FileTest.zip diff --git a/FileTestSchema/out/filetest.json b/FileTestSchema/out/filetest.json index bc088cd..f78fb09 100644 --- a/FileTestSchema/out/filetest.json +++ b/FileTestSchema/out/filetest.json @@ -115,16 +115,16 @@ "name": "FileTest", "$$md5": "35fd15d0c33bc2126fe2cdd81f964d67", "build": [ - 32, - 117, - 249, - 224, + 235, + 212, + 54, + 225, 69, 1, 0, 0 ], - "date": "2014-05-09T14:33:36T", + "date": "2014-05-09T15:40:38T", "maxAlign": 4, "maxSize": 240, "version": "1.0.0" diff --git a/MyAppSchema/bundle.properties b/MyAppSchema/bundle.properties index dc71afe..689ae49 100644 --- a/MyAppSchema/bundle.properties +++ b/MyAppSchema/bundle.properties @@ -6,5 +6,5 @@ com.emmoco.framework.Properties.schemaDestinationDirectory = out com.emmoco.framework.Properties.serverAPIToken = com.emmoco.framework.Properties.align16 = 2 com.emmoco.framework.Properties.align32 = 4 -com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/emmoco/MyAppSchema/schema.ems +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/durex/MyAppSchema/schema.ems com.emmoco.framework.Properties.toolVersion = 12.0.0.201211010336 diff --git a/MyAppSchema/out/MyApp-TODO.c b/MyAppSchema/out/MyApp-TODO.c index 5d1ed0b..4b8627e 100644 --- a/MyAppSchema/out/MyApp-TODO.c +++ b/MyAppSchema/out/MyApp-TODO.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "MyApp.h" diff --git a/MyAppSchema/out/MyApp.c b/MyAppSchema/out/MyApp.c index 9b88c1e..3ebe2ad 100644 --- a/MyAppSchema/out/MyApp.c +++ b/MyAppSchema/out/MyApp.c @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #include "Em_Message.h" @@ -19,7 +19,7 @@ typedef struct Em_App_Message { const uint8_t Em_App_hash[] = {214, 20, 94, 119, 153, 158, 83, 114, 52, 253, 232, 39, 41, 80, 38, 6, 12, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))}; -const uint8_t Em_App_build[] = {195, 117, 249, 224, 69, 1, 0, 0}; +const uint8_t Em_App_build[] = {134, 213, 54, 225, 69, 1, 0, 0}; #define Em_App_APP_RESOURCE_COUNT 1 #define Em_App_SYS_RESOURCE_COUNT 8 diff --git a/MyAppSchema/out/MyApp.h b/MyAppSchema/out/MyApp.h index 180b68b..820d479 100644 --- a/MyAppSchema/out/MyApp.h +++ b/MyAppSchema/out/MyApp.h @@ -1,4 +1,4 @@ -/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T14:33:36T ****/ +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.MyApp on 2014-05-09T15:40:38T ****/ /**** protocolLevel = 12, toolsVersion = 12.0.0.201211010336 ****/ #ifndef MyApp__H diff --git a/MyAppSchema/out/MyApp.zip b/MyAppSchema/out/MyApp.zip index 2349d95..aefa315 100644 --- a/MyAppSchema/out/MyApp.zip +++ b/MyAppSchema/out/MyApp.zip diff --git a/MyAppSchema/out/myapp.json b/MyAppSchema/out/myapp.json index 1439f52..675211f 100644 --- a/MyAppSchema/out/myapp.json +++ b/MyAppSchema/out/myapp.json @@ -107,16 +107,16 @@ "name": "MyApp", "$$md5": "b184e3f65b05cd53903a85dfa1918a7b", "build": [ - 195, - 117, - 249, - 224, + 134, + 213, + 54, + 225, 69, 1, 0, 0 ], - "date": "2014-05-09T14:33:36T", + "date": "2014-05-09T15:40:38T", "maxAlign": 2, "maxSize": 20, "version": "1.0.0" diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.h b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.h new file mode 100644 index 0000000..98c4ade --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.h @@ -0,0 +1,15 @@ +// +// EMAppDelegate.h +// BroadcastExample +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.m b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.m new file mode 100644 index 0000000..acf4909 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMAppDelegate.m @@ -0,0 +1,52 @@ +// +// EMAppDelegate.m +// BroadcastExample +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMAppDelegate.h" +#import "EMFramework.h" + +@implementation EMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + EMBluetoothLowEnergyConnectionType *bluetooth = [[EMBluetoothLowEnergyConnectionType alloc] init]; + if ([bluetooth isAvailable]) { + [[EMConnectionListManager sharedManager] addConnectionTypeToUpdates:bluetooth]; + [bluetooth setScanResetTime:0.5]; + } + [[EMConnectionListManager sharedManager] startUpdating]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.h b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.h new file mode 100644 index 0000000..75d4cea --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.h @@ -0,0 +1,13 @@ +// +// EMBroadcastViewController.h +// BroadcastExample +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMBroadcastViewController : UIViewController + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.m b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.m new file mode 100644 index 0000000..8bc2f64 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/EMBroadcastViewController.m @@ -0,0 +1,66 @@ +// +// EMBroadcastViewController.m +// BroadcastExample +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMBroadcastViewController.h" +#import "EMFramework.h" + +@interface EMBroadcastViewController () { + IBOutlet UILabel *codeLabel; + IBOutlet UILabel *firstDataField; + IBOutlet UILabel *secondDataField; +} + +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +@end + +@implementation EMBroadcastViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@"devices" options:0 context:NULL]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionListManager sharedManager]) { + if ([keyPath isEqualToString:@"devices"]) { + NSArray *devices = [[EMConnectionListManager sharedManager] devices]; + [self setDevice:[devices lastObject]]; + } + } +} + +-(void)setDevice:(EMDeviceBasicDescription *)device { + [self willChangeValueForKey:@"device"]; + _device = device; + [self didChangeValueForKey:@"device"]; + [self _updateInterfaceForDevice]; +} + +-(void)_updateInterfaceForDevice { + NSDictionary *broadcastInfo = [[self device] advertiseObject]; + NSString *code = [broadcastInfo objectForKey:@"c"]; + NSArray *values = [broadcastInfo objectForKey:@"d"]; + NSNumber *first = [values firstObject]; + NSNumber *second = [values lastObject]; + [codeLabel setText:code]; + [firstDataField setText:[NSString stringWithFormat:@"%0.1f", [first floatValue]]]; + [secondDataField setText:[NSString stringWithFormat:@"%0.1f", [second floatValue]]]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Info.plist b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Info.plist new file mode 100644 index 0000000..218b3ca --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Storyboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Prefix.pch b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Ex_Broadcast-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/Contents.json b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Storyboard.storyboard b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Storyboard.storyboard new file mode 100644 index 0000000..f554ab6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/Storyboard.storyboard @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/ex_broadcast.json b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/ex_broadcast.json new file mode 100644 index 0000000..509542e --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/ex_broadcast.json @@ -0,0 +1,244 @@ +{ + "resources": { + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$activeGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + }, + "info": { + "id": 1, + "align": 2, + "pack": 9, + "attributes": {"broadcast": true}, + "type": "S:@emmoco.com.Ex_Broadcast/Info", + "access": "r", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 192, + 219, + 219, + 167, + 239, + 193, + 8, + 28, + 198, + 8, + 2, + 121, + 226, + 88, + 60, + 212 + ], + "toolVersion": "13.3.7.201308302156", + "name": "Ex_Broadcast", + "broadcaster": "info", + "$$md5": "c0dbdba7efc1081cc6080279e2583cd4", + "build": [ + 177, + 231, + 254, + 55, + 65, + 1, + 0, + 0 + ], + "date": "2013-09-19T15:52:34", + "maxAlign": 2, + "maxSize": 20, + "version": "1.0.0" + }, + "resourceNames": [ + "info", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeGroup" + ], + "attributes": { + "description": "Broadcast example", + "version": "1.0.0" + }, + "resourceNamesApp": ["info"], + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "@emmoco.com.Ex_Broadcast/Code": { + "values": [ + "C1", + "C2" + ], + "align": 1, + "pack": 1, + "type": "E:@emmoco.com.Ex_Broadcast/Code", + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + }, + "@emmoco.com.Ex_Broadcast/Info": { + "packed": true, + "align": 2, + "pack": 9, + "type": "S:@emmoco.com.Ex_Broadcast/Info", + "size": 2, + "fields": [ + { + "pad": 0, + "packed": true, + "align": 1, + "name": "c", + "pack": 1, + "type": "E:@emmoco.com.Ex_Broadcast/Code", + "size": 1 + }, + { + "dim": 2, + "pad": 0, + "packed": true, + "align": 1, + "name": "d", + "pack": 8, + "type": "A2:N:1.000000,2.000000,0.100000,1/u1/10", + "size": 1 + } + ] + } + }, + "imports": {"@emmoco.com.Ex_Broadcast": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/main.m b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/main.m new file mode 100644 index 0000000..d835a4d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExample/main.m @@ -0,0 +1,18 @@ +// +// main.m +// BroadcastExample +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +#import "EMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EMAppDelegate class])); + } +} diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/BroadcastExampleTests.m b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/BroadcastExampleTests.m new file mode 100644 index 0000000..ef28cff --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/BroadcastExampleTests.m @@ -0,0 +1,34 @@ +// +// BroadcastExampleTests.m +// BroadcastExampleTests +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface BroadcastExampleTests : XCTestCase + +@end + +@implementation BroadcastExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/Ex_BroadcastTests-Info.plist b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/Ex_BroadcastTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/Ex_BroadcastTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/BroadcastExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Assets/system.json b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/FileValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/IntValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StringValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StructValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/styles.css b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/stylesPrint.css b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/hierarchy.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/button_bar_background.png b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure.png b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure_open.png b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/library_background.png b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/title_background.png b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/index.html b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMChecksum.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnection.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionManager.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionType.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMFramework.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSchema.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSerialPacket.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMTypes.h b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/README.md b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/ios-examples-13.4.9/Ex_Broadcast/Ex_Broadcast.xcodeproj/project.pbxproj b/ios-examples-13.4.9/Ex_Broadcast/Ex_Broadcast.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c5430e3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Broadcast/Ex_Broadcast.xcodeproj/project.pbxproj @@ -0,0 +1,554 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 347547921860FA21002D179A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547911860FA21002D179A /* Foundation.framework */; }; + 347547941860FA21002D179A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547931860FA21002D179A /* CoreGraphics.framework */; }; + 347547961860FA21002D179A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547951860FA21002D179A /* UIKit.framework */; }; + 3475479C1860FA21002D179A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3475479A1860FA21002D179A /* InfoPlist.strings */; }; + 3475479E1860FA21002D179A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3475479D1860FA21002D179A /* main.m */; }; + 347547A21860FA21002D179A /* EMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 347547A11860FA21002D179A /* EMAppDelegate.m */; }; + 347547A41860FA21002D179A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 347547A31860FA21002D179A /* Images.xcassets */; }; + 347547AB1860FA22002D179A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547AA1860FA22002D179A /* XCTest.framework */; }; + 347547AC1860FA22002D179A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547911860FA21002D179A /* Foundation.framework */; }; + 347547AD1860FA22002D179A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547951860FA21002D179A /* UIKit.framework */; }; + 347547B51860FA22002D179A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 347547B31860FA22002D179A /* InfoPlist.strings */; }; + 347547B71860FA22002D179A /* BroadcastExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 347547B61860FA22002D179A /* BroadcastExampleTests.m */; }; + 347547C11860FA41002D179A /* libEMFramework.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547C01860FA41002D179A /* libEMFramework.a */; }; + 347547C31860FA4D002D179A /* system.json in Resources */ = {isa = PBXBuildFile; fileRef = 347547C21860FA4D002D179A /* system.json */; }; + 347547DB1860FA96002D179A /* ex_broadcast.json in Resources */ = {isa = PBXBuildFile; fileRef = 347547DA1860FA96002D179A /* ex_broadcast.json */; }; + 347547DD1860FAA6002D179A /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 347547DC1860FAA6002D179A /* Storyboard.storyboard */; }; + 347547E01860FB13002D179A /* EMBroadcastViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 347547DF1860FB13002D179A /* EMBroadcastViewController.m */; }; + 347547E21860FBE7002D179A /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347547E11860FBE7002D179A /* CoreBluetooth.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 347547AE1860FA22002D179A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 347547861860FA21002D179A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3475478D1860FA21002D179A; + remoteInfo = BroadcastExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3475478E1860FA21002D179A /* Ex_Broadcast.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ex_Broadcast.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 347547911860FA21002D179A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 347547931860FA21002D179A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 347547951860FA21002D179A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 347547991860FA21002D179A /* Ex_Broadcast-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_Broadcast-Info.plist"; sourceTree = ""; }; + 3475479B1860FA21002D179A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3475479D1860FA21002D179A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 3475479F1860FA21002D179A /* Ex_Broadcast-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Ex_Broadcast-Prefix.pch"; sourceTree = ""; }; + 347547A01860FA21002D179A /* EMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMAppDelegate.h; sourceTree = ""; }; + 347547A11860FA21002D179A /* EMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMAppDelegate.m; sourceTree = ""; }; + 347547A31860FA21002D179A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 347547A91860FA22002D179A /* Ex_BroadcastTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Ex_BroadcastTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 347547AA1860FA22002D179A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 347547B21860FA22002D179A /* Ex_BroadcastTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_BroadcastTests-Info.plist"; sourceTree = ""; }; + 347547B41860FA22002D179A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 347547B61860FA22002D179A /* BroadcastExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BroadcastExampleTests.m; sourceTree = ""; }; + 347547C01860FA41002D179A /* libEMFramework.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libEMFramework.a; path = EmmocoMobileFramework/Framework/libEMFramework.a; sourceTree = ""; }; + 347547C21860FA4D002D179A /* system.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = system.json; path = EmmocoMobileFramework/Assets/system.json; sourceTree = SOURCE_ROOT; }; + 347547C51860FA53002D179A /* EMBluetoothLowEnergyConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBluetoothLowEnergyConnectionType.h; sourceTree = ""; }; + 347547C61860FA53002D179A /* EMChecksum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMChecksum.h; sourceTree = ""; }; + 347547C71860FA53002D179A /* EMConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnection.h; sourceTree = ""; }; + 347547C81860FA53002D179A /* EMConnectionIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionIndicator.h; sourceTree = ""; }; + 347547C91860FA53002D179A /* EMConnectionListManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListManager.h; sourceTree = ""; }; + 347547CA1860FA53002D179A /* EMConnectionListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListView.h; sourceTree = ""; }; + 347547CB1860FA53002D179A /* EMConnectionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionManager.h; sourceTree = ""; }; + 347547CC1860FA53002D179A /* EMConnectionPickerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionPickerDelegate.h; sourceTree = ""; }; + 347547CD1860FA53002D179A /* EMConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionType.h; sourceTree = ""; }; + 347547CE1860FA53002D179A /* EMDeviceBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDeviceBasicDescription.h; sourceTree = ""; }; + 347547CF1860FA53002D179A /* EMFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFramework.h; sourceTree = ""; }; + 347547D01860FA53002D179A /* EMMockConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockConnectionType.h; sourceTree = ""; }; + 347547D11860FA53002D179A /* EMMockDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockDevice.h; sourceTree = ""; }; + 347547D21860FA53002D179A /* EMResourceValue+CocoaAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EMResourceValue+CocoaAdditions.h"; sourceTree = ""; }; + 347547D31860FA53002D179A /* EMResourceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMResourceValue.h; sourceTree = ""; }; + 347547D41860FA53002D179A /* EMSchema.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSchema.h; sourceTree = ""; }; + 347547D51860FA53002D179A /* EMSerialPacket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSerialPacket.h; sourceTree = ""; }; + 347547D61860FA53002D179A /* EMSignalStrengthFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSignalStrengthFilter.h; sourceTree = ""; }; + 347547D71860FA53002D179A /* EMTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMTypes.h; sourceTree = ""; }; + 347547D81860FA53002D179A /* NSTimer+EMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+EMAdditions.h"; sourceTree = ""; }; + 347547DA1860FA96002D179A /* ex_broadcast.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = ex_broadcast.json; sourceTree = ""; }; + 347547DC1860FAA6002D179A /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; + 347547DE1860FB13002D179A /* EMBroadcastViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBroadcastViewController.h; sourceTree = ""; }; + 347547DF1860FB13002D179A /* EMBroadcastViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMBroadcastViewController.m; sourceTree = ""; }; + 347547E11860FBE7002D179A /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3475478B1860FA21002D179A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547E21860FBE7002D179A /* CoreBluetooth.framework in Frameworks */, + 347547941860FA21002D179A /* CoreGraphics.framework in Frameworks */, + 347547961860FA21002D179A /* UIKit.framework in Frameworks */, + 347547C11860FA41002D179A /* libEMFramework.a in Frameworks */, + 347547921860FA21002D179A /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 347547A61860FA22002D179A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547AB1860FA22002D179A /* XCTest.framework in Frameworks */, + 347547AD1860FA22002D179A /* UIKit.framework in Frameworks */, + 347547AC1860FA22002D179A /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 347547851860FA21002D179A = { + isa = PBXGroup; + children = ( + 347547971860FA21002D179A /* BroadcastExample */, + 347547B01860FA22002D179A /* BroadcastExampleTests */, + 347547901860FA21002D179A /* Frameworks */, + 3475478F1860FA21002D179A /* Products */, + ); + sourceTree = ""; + }; + 3475478F1860FA21002D179A /* Products */ = { + isa = PBXGroup; + children = ( + 3475478E1860FA21002D179A /* Ex_Broadcast.app */, + 347547A91860FA22002D179A /* Ex_BroadcastTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 347547901860FA21002D179A /* Frameworks */ = { + isa = PBXGroup; + children = ( + 347547E11860FBE7002D179A /* CoreBluetooth.framework */, + 347547C01860FA41002D179A /* libEMFramework.a */, + 347547911860FA21002D179A /* Foundation.framework */, + 347547931860FA21002D179A /* CoreGraphics.framework */, + 347547951860FA21002D179A /* UIKit.framework */, + 347547AA1860FA22002D179A /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 347547971860FA21002D179A /* BroadcastExample */ = { + isa = PBXGroup; + children = ( + 347547D91860FA57002D179A /* Framework */, + 347547A01860FA21002D179A /* EMAppDelegate.h */, + 347547A11860FA21002D179A /* EMAppDelegate.m */, + 347547A31860FA21002D179A /* Images.xcassets */, + 347547981860FA21002D179A /* Supporting Files */, + 347547DC1860FAA6002D179A /* Storyboard.storyboard */, + 347547DE1860FB13002D179A /* EMBroadcastViewController.h */, + 347547DF1860FB13002D179A /* EMBroadcastViewController.m */, + ); + path = BroadcastExample; + sourceTree = ""; + }; + 347547981860FA21002D179A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 347547991860FA21002D179A /* Ex_Broadcast-Info.plist */, + 3475479A1860FA21002D179A /* InfoPlist.strings */, + 3475479D1860FA21002D179A /* main.m */, + 3475479F1860FA21002D179A /* Ex_Broadcast-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 347547B01860FA22002D179A /* BroadcastExampleTests */ = { + isa = PBXGroup; + children = ( + 347547B61860FA22002D179A /* BroadcastExampleTests.m */, + 347547B11860FA22002D179A /* Supporting Files */, + ); + path = BroadcastExampleTests; + sourceTree = ""; + }; + 347547B11860FA22002D179A /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 347547B21860FA22002D179A /* Ex_BroadcastTests-Info.plist */, + 347547B31860FA22002D179A /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 347547C41860FA53002D179A /* Headers */ = { + isa = PBXGroup; + children = ( + 347547C51860FA53002D179A /* EMBluetoothLowEnergyConnectionType.h */, + 347547C61860FA53002D179A /* EMChecksum.h */, + 347547C71860FA53002D179A /* EMConnection.h */, + 347547C81860FA53002D179A /* EMConnectionIndicator.h */, + 347547C91860FA53002D179A /* EMConnectionListManager.h */, + 347547CA1860FA53002D179A /* EMConnectionListView.h */, + 347547CB1860FA53002D179A /* EMConnectionManager.h */, + 347547CC1860FA53002D179A /* EMConnectionPickerDelegate.h */, + 347547CD1860FA53002D179A /* EMConnectionType.h */, + 347547CE1860FA53002D179A /* EMDeviceBasicDescription.h */, + 347547CF1860FA53002D179A /* EMFramework.h */, + 347547D01860FA53002D179A /* EMMockConnectionType.h */, + 347547D11860FA53002D179A /* EMMockDevice.h */, + 347547D21860FA53002D179A /* EMResourceValue+CocoaAdditions.h */, + 347547D31860FA53002D179A /* EMResourceValue.h */, + 347547D41860FA53002D179A /* EMSchema.h */, + 347547D51860FA53002D179A /* EMSerialPacket.h */, + 347547D61860FA53002D179A /* EMSignalStrengthFilter.h */, + 347547D71860FA53002D179A /* EMTypes.h */, + 347547D81860FA53002D179A /* NSTimer+EMAdditions.h */, + ); + name = Headers; + path = EmmocoMobileFramework/Headers; + sourceTree = SOURCE_ROOT; + }; + 347547D91860FA57002D179A /* Framework */ = { + isa = PBXGroup; + children = ( + 347547DA1860FA96002D179A /* ex_broadcast.json */, + 347547C41860FA53002D179A /* Headers */, + 347547C21860FA4D002D179A /* system.json */, + ); + name = Framework; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3475478D1860FA21002D179A /* Ex_Broadcast */ = { + isa = PBXNativeTarget; + buildConfigurationList = 347547BA1860FA22002D179A /* Build configuration list for PBXNativeTarget "Ex_Broadcast" */; + buildPhases = ( + 3475478A1860FA21002D179A /* Sources */, + 3475478B1860FA21002D179A /* Frameworks */, + 3475478C1860FA21002D179A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Ex_Broadcast; + productName = BroadcastExample; + productReference = 3475478E1860FA21002D179A /* Ex_Broadcast.app */; + productType = "com.apple.product-type.application"; + }; + 347547A81860FA22002D179A /* Ex_BroadcastTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 347547BD1860FA22002D179A /* Build configuration list for PBXNativeTarget "Ex_BroadcastTests" */; + buildPhases = ( + 347547A51860FA22002D179A /* Sources */, + 347547A61860FA22002D179A /* Frameworks */, + 347547A71860FA22002D179A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 347547AF1860FA22002D179A /* PBXTargetDependency */, + ); + name = Ex_BroadcastTests; + productName = BroadcastExampleTests; + productReference = 347547A91860FA22002D179A /* Ex_BroadcastTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 347547861860FA21002D179A /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 347547A81860FA22002D179A = { + TestTargetID = 3475478D1860FA21002D179A; + }; + }; + }; + buildConfigurationList = 347547891860FA21002D179A /* Build configuration list for PBXProject "Ex_Broadcast" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 347547851860FA21002D179A; + productRefGroup = 3475478F1860FA21002D179A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3475478D1860FA21002D179A /* Ex_Broadcast */, + 347547A81860FA22002D179A /* Ex_BroadcastTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3475478C1860FA21002D179A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547DB1860FA96002D179A /* ex_broadcast.json in Resources */, + 3475479C1860FA21002D179A /* InfoPlist.strings in Resources */, + 347547A41860FA21002D179A /* Images.xcassets in Resources */, + 347547C31860FA4D002D179A /* system.json in Resources */, + 347547DD1860FAA6002D179A /* Storyboard.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 347547A71860FA22002D179A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547B51860FA22002D179A /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3475478A1860FA21002D179A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547E01860FB13002D179A /* EMBroadcastViewController.m in Sources */, + 347547A21860FA21002D179A /* EMAppDelegate.m in Sources */, + 3475479E1860FA21002D179A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 347547A51860FA22002D179A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 347547B71860FA22002D179A /* BroadcastExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 347547AF1860FA22002D179A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3475478D1860FA21002D179A /* Ex_Broadcast */; + targetProxy = 347547AE1860FA22002D179A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 3475479A1860FA21002D179A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3475479B1860FA21002D179A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 347547B31860FA22002D179A /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 347547B41860FA22002D179A /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 347547B81860FA22002D179A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 347547B91860FA22002D179A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 347547BB1860FA22002D179A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "BroadcastExample/Ex_Broadcast-Prefix.pch"; + INFOPLIST_FILE = "BroadcastExample/Ex_Broadcast-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Broadcast; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 347547BC1860FA22002D179A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "BroadcastExample/Ex_Broadcast-Prefix.pch"; + INFOPLIST_FILE = "BroadcastExample/Ex_Broadcast-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Broadcast; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 347547BE1860FA22002D179A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BroadcastExample.app/BroadcastExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "BroadcastExample/BroadcastExample-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "BroadcastExampleTests/Ex_BroadcastTests-Info.plist"; + PRODUCT_NAME = Ex_BroadcastTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 347547BF1860FA22002D179A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BroadcastExample.app/BroadcastExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "BroadcastExample/BroadcastExample-Prefix.pch"; + INFOPLIST_FILE = "BroadcastExampleTests/Ex_BroadcastTests-Info.plist"; + PRODUCT_NAME = Ex_BroadcastTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 347547891860FA21002D179A /* Build configuration list for PBXProject "Ex_Broadcast" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 347547B81860FA22002D179A /* Debug */, + 347547B91860FA22002D179A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 347547BA1860FA22002D179A /* Build configuration list for PBXNativeTarget "Ex_Broadcast" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 347547BB1860FA22002D179A /* Debug */, + 347547BC1860FA22002D179A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 347547BD1860FA22002D179A /* Build configuration list for PBXNativeTarget "Ex_BroadcastTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 347547BE1860FA22002D179A /* Debug */, + 347547BF1860FA22002D179A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 347547861860FA21002D179A /* Project object */; +} diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.h b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.h new file mode 100644 index 0000000..0856108 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.h @@ -0,0 +1,16 @@ +// +// EMAppDelegate.h +// Compound Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (nonatomic, strong) UINavigationController *navController; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.m b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.m new file mode 100644 index 0000000..fdce76c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMAppDelegate.m @@ -0,0 +1,64 @@ +// +// EMAppDelegate.m +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMAppDelegate.h" +#import "EMFramework.h" +#import "EMDevicePickerViewController.h" + +@implementation EMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UINavigationController *navController = (UINavigationController *)[[self window] rootViewController]; + [self setNavController:navController]; + [[self navController] setDelegate:self]; + + [[EMConnectionListManager sharedManager] startUpdating]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + [[EMConnectionListManager sharedManager] startUpdating]; +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +#pragma mark - Navigation Controller + +- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { + if ([viewController isKindOfClass:[EMDevicePickerViewController class]]) { + [[EMConnectionManager sharedManager] disconnectWithSuccess:^{ + + } onFail:^(NSError *error) { + + }]; + } +} + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.h b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.h new file mode 100644 index 0000000..c34488c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.h @@ -0,0 +1,15 @@ +// +// EMCompoundExampleViewController.h +// Compound Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMCompoundExampleViewController : UIViewController + +@property (nonatomic, strong) IBOutlet UITableView *tableView; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.m b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.m new file mode 100644 index 0000000..1c18139 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundExampleViewController.m @@ -0,0 +1,102 @@ +// +// EMCompoundExampleViewController.m +// Compound Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMCompoundExampleViewController.h" +#import "EMFramework.h" +#import "EMCompoundResourceCell.h" + +@interface EMCompoundExampleViewController () + +@property (nonatomic, strong) NSArray *readValue; + +@end + +@implementation EMCompoundExampleViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[EMConnectionManager sharedManager] readResource:@"infoArray" onSuccess:^(id readValue) { + if ([readValue isKindOfClass:[NSArray class]]) { + [self setReadValue:readValue]; + [[self tableView] reloadData]; + } + } onFail:^(NSError *error) { + NSLog(@"%@", [error localizedDescription]); + }]; + + [[EMConnectionManager sharedManager] addObserver:self forKeyPath:@"connectionState" options:0 context:NULL]; +} + +-(void)dealloc { + [[EMConnectionManager sharedManager] removeObserver:self forKeyPath:@"connectionState"]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionManager sharedManager]) { + if ([keyPath isEqualToString:@"connectionState"]) { + if ([[EMConnectionManager sharedManager] connectionState] == EMConnectionStateDisrupted) { + [[self navigationController] popToRootViewControllerAnimated:YES]; + } + } + } +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 3; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return 1; +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + static NSString *reuseIdentifier = @"ResourceCell"; + NSDictionary *value = [[self readValue] objectAtIndex:[indexPath section]]; + EMCompoundResourceCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier]; + [cell setCompoundResourceValue:value]; + [cell setDelegate:self]; + [cell setIndex:[indexPath section]]; + return cell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + [tableView deselectRowAtIndexPath:indexPath animated:YES]; +} + +#pragma mark - Cell Delegate + +-(void)cellDidProcessEditing:(NSDictionary *)dictionary forIndex:(NSUInteger)index { + NSMutableArray *mutable = [[self readValue] mutableCopy]; + [mutable replaceObjectAtIndex:index withObject:dictionary]; + [self setReadValue:mutable]; + [[EMConnectionManager sharedManager] writeValue:[self readValue] toResource:@"infoArray" onSuccess:^{ + NSLog(@"Successfully wrote resource"); + } onFail:^(NSError *error) { + NSLog(@"Failed to write value: %@", [error localizedDescription]); + }]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.h b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.h new file mode 100644 index 0000000..33be7e6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.h @@ -0,0 +1,23 @@ +// +// EMCompoundResourceCell.h +// Compound Example +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMCompoundResourceCellDelegate + +-(void)cellDidProcessEditing:(NSDictionary *)dictionary forIndex:(NSUInteger)index; + +@end + +@interface EMCompoundResourceCell : UITableViewCell + +@property (nonatomic, strong) NSDictionary *compoundResourceValue; +@property (nonatomic, unsafe_unretained) id delegate; +@property (nonatomic) NSUInteger index; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.m b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.m new file mode 100644 index 0000000..a6b3fb0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMCompoundResourceCell.m @@ -0,0 +1,45 @@ +// +// EMCompoundResourceCell.m +// Compound Example +// +// Created by Dexter Weiss on 12/17/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMCompoundResourceCell.h" + +@interface EMCompoundResourceCell () { + IBOutlet UITextField *_labelField; + IBOutlet UITextField *_valueField; +} + +@end + +@implementation EMCompoundResourceCell + +-(void)setCompoundResourceValue:(NSDictionary *)compoundResourceValue { + [self willChangeValueForKey:@"compoundResourceValue"]; + _compoundResourceValue = compoundResourceValue; + [self didChangeValueForKey:@"compoundResourceValue"]; + [self _layout]; +} + +-(void)_layout { + [_labelField setText:[[self compoundResourceValue] objectForKey:@"label"]]; + NSNumber *numberValue = [[self compoundResourceValue] objectForKey:@"value"]; + [_valueField setText:[NSString stringWithFormat:@"%d", [numberValue integerValue]]]; +} + +#pragma mark - Text Field Delegate + +-(BOOL)textFieldShouldReturn:(UITextField *)textField { + [textField resignFirstResponder]; + NSDictionary *value = @{@"label" : [_labelField text], + @"value" : [_valueField text]}; + + [[self delegate] cellDidProcessEditing:value forIndex:[self index]]; + + return YES; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMConnectingView.xib b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMConnectingView.xib new file mode 100644 index 0000000..7e84038 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMConnectingView.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.h b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.h new file mode 100644 index 0000000..6caaba7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.h @@ -0,0 +1,13 @@ +// +// EMDevicePickerViewController.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMDevicePickerViewController : UITableViewController + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.m b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.m new file mode 100644 index 0000000..317f27f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/EMDevicePickerViewController.m @@ -0,0 +1,103 @@ +// +// EMDevicePickerViewController.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMDevicePickerViewController.h" +#import "EMFramework.h" +#import + +@interface EMDevicePickerViewController () + +@property (nonatomic, strong) IBOutlet UIView *connectingView; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; +@property (nonatomic, strong) IBOutlet UIView *popoverView; + +@end + +@implementation EMDevicePickerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[NSBundle mainBundle] loadNibNamed:@"EMConnectingView" owner:self options:nil]; + [[[self popoverView] layer] setCornerRadius:10.0f]; + [[self connectingView] setHidden:YES]; + [[self connectingView] setFrame:[[self view] bounds]]; + [[self view] addSubview:[self connectingView]]; + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@"devices" options:0 context:NULL]; +} + +-(void)_showConnectingView { + [[self activityIndicator] startAnimating]; + [[self connectingView] setHidden:NO]; +} + +-(void)_hideConnectingView { + [[self activityIndicator] stopAnimating]; + [[self connectingView] setHidden:YES]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionListManager sharedManager]) { + [[self tableView] reloadData]; + } +} + +#pragma mark - Table View Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return MAX([[[EMConnectionListManager sharedManager] devices] count], 1); +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *deviceCell = [tableView dequeueReusableCellWithIdentifier:@"DeviceCell"]; + [[deviceCell detailTextLabel] setTextColor:[UIColor darkGrayColor]]; + + EMDeviceBasicDescription *description = nil; + if ([indexPath row] < [[[EMConnectionListManager sharedManager] devices] count]) { + description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + } + + if (description) { + [[deviceCell textLabel] setText:[description name]]; + [[deviceCell detailTextLabel] setText:[NSString stringWithFormat:@"Signal Strength: %0.0f", [description signalStrength]]]; + } + else { + [[deviceCell textLabel] setText:NSLocalizedString(@"Searching for devices...", @"No devices found string")]; + [[deviceCell detailTextLabel] setText:nil]; + } + + return deviceCell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + [self _showConnectingView]; + EMDeviceBasicDescription *description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + [[EMConnectionManager sharedManager] connectDevice:description onSuccess:^{ + [self _hideConnectingView]; + [self performSegueWithIdentifier:@"ConnectionSegue" sender:self]; + } onFail:^(NSError *error) { + [self _hideConnectingView]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Connection Failed", @"Alert title") message:NSLocalizedString(@"An error occurred while trying to connect to the selected device", @"Alert message") delegate:nil cancelButtonTitle:NSLocalizedString(@"Close", @"Close button") otherButtonTitles:nil]; + [alert show]; + }]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Info.plist b/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Info.plist new file mode 100644 index 0000000..218b3ca --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Storyboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Prefix.pch b/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Ex_Compound-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/Contents.json b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/LaunchImage.launchimage/Contents.json b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/Storyboard.storyboard b/ios-examples-13.4.9/Ex_Compound/Compound Example/Storyboard.storyboard new file mode 100644 index 0000000..a15f330 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/Storyboard.storyboard @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Compound/Compound Example/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/ex_compound.json b/ios-examples-13.4.9/Ex_Compound/Compound Example/ex_compound.json new file mode 100644 index 0000000..0b9ec64 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/ex_compound.json @@ -0,0 +1,239 @@ +{ + "resources": { + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "infoArraySize": { + "id": 2, + "align": 1, + "attributes": {"readonly": true}, + "type": "u1", + "access": "r", + "size": 1 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$activeGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "infoArray": { + "dim": 3, + "id": 1, + "align": 2, + "attributes": {}, + "type": "A3:S:@emmoco.com.Ex_Compound/Info", + "access": "rw", + "size": 48 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 88, + 81, + 194, + 167, + 171, + 234, + 128, + 91, + 210, + 192, + 2, + 129, + 186, + 197, + 189, + 56 + ], + "toolVersion": "13.3.7.201308302156", + "name": "Ex_Compound", + "$$md5": "5851c2a7abea805bd2c00281bac5bd38", + "build": [ + 145, + 181, + 6, + 56, + 65, + 1, + 0, + 0 + ], + "date": "2013-09-19T16:01:05", + "maxAlign": 2, + "maxSize": 48, + "version": "1.0.0" + }, + "resourceNames": [ + "infoArray", + "infoArraySize", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeGroup" + ], + "attributes": { + "description": "Compound types examples", + "version": "1.0.0" + }, + "resourceNamesApp": [ + "infoArray", + "infoArraySize" + ], + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "@emmoco.com.Ex_Compound/Info": { + "packed": false, + "align": 2, + "type": "S:@emmoco.com.Ex_Compound/Info", + "size": 16, + "fields": [ + { + "pad": 1, + "align": 1, + "name": "label", + "type": "C:13", + "size": 13 + }, + { + "pad": 0, + "align": 2, + "name": "value", + "type": "i2", + "size": 2 + } + ] + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "imports": {"@emmoco.com.Ex_Compound": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/Compound Example/main.m b/ios-examples-13.4.9/Ex_Compound/Compound Example/main.m new file mode 100644 index 0000000..c01d321 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound Example/main.m @@ -0,0 +1,18 @@ +// +// main.m +// Compound Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +#import "EMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EMAppDelegate class])); + } +} diff --git a/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Compound_ExampleTests.m b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Compound_ExampleTests.m new file mode 100644 index 0000000..4c63c20 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Compound_ExampleTests.m @@ -0,0 +1,34 @@ +// +// Compound_ExampleTests.m +// Compound ExampleTests +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface Compound_ExampleTests : XCTestCase + +@end + +@implementation Compound_ExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Ex_CompoundTests-Info.plist b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Ex_CompoundTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/Ex_CompoundTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Compound ExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Assets/system.json b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/FileValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/IntValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StringValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StructValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/styles.css b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/stylesPrint.css b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/hierarchy.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/button_bar_background.png b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure.png b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure_open.png b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/library_background.png b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/title_background.png b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/index.html b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMChecksum.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnection.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionManager.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionType.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMFramework.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSchema.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSerialPacket.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMTypes.h b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/README.md b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/ios-examples-13.4.9/Ex_Compound/Ex_Compound.xcodeproj/project.pbxproj b/ios-examples-13.4.9/Ex_Compound/Ex_Compound.xcodeproj/project.pbxproj new file mode 100644 index 0000000..65c4fc7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Compound/Ex_Compound.xcodeproj/project.pbxproj @@ -0,0 +1,572 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 340098A71860F0F900DE02A9 /* EMCompoundResourceCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 340098A61860F0F900DE02A9 /* EMCompoundResourceCell.m */; }; + 3476EBB9180DBD0B00C71DA1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBB8180DBD0B00C71DA1 /* Foundation.framework */; }; + 3476EBBB180DBD0B00C71DA1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBBA180DBD0B00C71DA1 /* CoreGraphics.framework */; }; + 3476EBBD180DBD0B00C71DA1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBBC180DBD0B00C71DA1 /* UIKit.framework */; }; + 3476EBC3180DBD0B00C71DA1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBC1180DBD0B00C71DA1 /* InfoPlist.strings */; }; + 3476EBC5180DBD0B00C71DA1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EBC4180DBD0B00C71DA1 /* main.m */; }; + 3476EBC9180DBD0B00C71DA1 /* EMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EBC8180DBD0B00C71DA1 /* EMAppDelegate.m */; }; + 3476EBCB180DBD0B00C71DA1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBCA180DBD0B00C71DA1 /* Images.xcassets */; }; + 3476EBD2180DBD0B00C71DA1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBD1180DBD0B00C71DA1 /* XCTest.framework */; }; + 3476EBD3180DBD0B00C71DA1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBB8180DBD0B00C71DA1 /* Foundation.framework */; }; + 3476EBD4180DBD0B00C71DA1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBBC180DBD0B00C71DA1 /* UIKit.framework */; }; + 3476EBDC180DBD0B00C71DA1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBDA180DBD0B00C71DA1 /* InfoPlist.strings */; }; + 3476EBDE180DBD0B00C71DA1 /* Compound_ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EBDD180DBD0B00C71DA1 /* Compound_ExampleTests.m */; }; + 3476EBE9180DBD3400C71DA1 /* system.json in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBE8180DBD3400C71DA1 /* system.json */; }; + 3476EC04180DBD6000C71DA1 /* EMDevicePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EC02180DBD6000C71DA1 /* EMDevicePickerViewController.m */; }; + 3476EC05180DBD6000C71DA1 /* EMConnectingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3476EC03180DBD6000C71DA1 /* EMConnectingView.xib */; }; + 3476EC07180DBD6D00C71DA1 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3476EC06180DBD6D00C71DA1 /* Storyboard.storyboard */; }; + 3476EC09180DBE3B00C71DA1 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EC08180DBE3B00C71DA1 /* CoreBluetooth.framework */; }; + 3476EC0B180DBF4700C71DA1 /* libEMFramework.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EC0A180DBF4700C71DA1 /* libEMFramework.a */; }; + 3476EC0D180DC02000C71DA1 /* ex_compound.json in Resources */ = {isa = PBXBuildFile; fileRef = 3476EC0C180DC02000C71DA1 /* ex_compound.json */; }; + 3476EC10180DC1A400C71DA1 /* EMCompoundExampleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EC0F180DC1A400C71DA1 /* EMCompoundExampleViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 3476EBD5180DBD0B00C71DA1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3476EBAD180DBD0B00C71DA1 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3476EBB4180DBD0B00C71DA1; + remoteInfo = "Compound Example"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 340098A51860F0F900DE02A9 /* EMCompoundResourceCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMCompoundResourceCell.h; sourceTree = ""; }; + 340098A61860F0F900DE02A9 /* EMCompoundResourceCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMCompoundResourceCell.m; sourceTree = ""; }; + 3476EBB5180DBD0B00C71DA1 /* Ex_Compound.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ex_Compound.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3476EBB8180DBD0B00C71DA1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 3476EBBA180DBD0B00C71DA1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 3476EBBC180DBD0B00C71DA1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 3476EBC0180DBD0B00C71DA1 /* Ex_Compound-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_Compound-Info.plist"; sourceTree = ""; }; + 3476EBC2180DBD0B00C71DA1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3476EBC4180DBD0B00C71DA1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 3476EBC6180DBD0B00C71DA1 /* Ex_Compound-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Ex_Compound-Prefix.pch"; sourceTree = ""; }; + 3476EBC7180DBD0B00C71DA1 /* EMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMAppDelegate.h; sourceTree = ""; }; + 3476EBC8180DBD0B00C71DA1 /* EMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMAppDelegate.m; sourceTree = ""; }; + 3476EBCA180DBD0B00C71DA1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 3476EBD0180DBD0B00C71DA1 /* Ex_CompoundTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Ex_CompoundTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3476EBD1180DBD0B00C71DA1 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 3476EBD9180DBD0B00C71DA1 /* Ex_CompoundTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_CompoundTests-Info.plist"; sourceTree = ""; }; + 3476EBDB180DBD0B00C71DA1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3476EBDD180DBD0B00C71DA1 /* Compound_ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Compound_ExampleTests.m; sourceTree = ""; }; + 3476EBE8180DBD3400C71DA1 /* system.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = system.json; path = EmmocoMobileFramework/Assets/system.json; sourceTree = SOURCE_ROOT; }; + 3476EBEB180DBD3C00C71DA1 /* EMBluetoothLowEnergyConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBluetoothLowEnergyConnectionType.h; sourceTree = ""; }; + 3476EBEC180DBD3C00C71DA1 /* EMChecksum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMChecksum.h; sourceTree = ""; }; + 3476EBED180DBD3C00C71DA1 /* EMConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnection.h; sourceTree = ""; }; + 3476EBEE180DBD3C00C71DA1 /* EMConnectionIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionIndicator.h; sourceTree = ""; }; + 3476EBEF180DBD3C00C71DA1 /* EMConnectionListManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListManager.h; sourceTree = ""; }; + 3476EBF0180DBD3C00C71DA1 /* EMConnectionListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListView.h; sourceTree = ""; }; + 3476EBF1180DBD3C00C71DA1 /* EMConnectionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionManager.h; sourceTree = ""; }; + 3476EBF2180DBD3C00C71DA1 /* EMConnectionPickerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionPickerDelegate.h; sourceTree = ""; }; + 3476EBF3180DBD3C00C71DA1 /* EMConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionType.h; sourceTree = ""; }; + 3476EBF4180DBD3C00C71DA1 /* EMDeviceBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDeviceBasicDescription.h; sourceTree = ""; }; + 3476EBF5180DBD3C00C71DA1 /* EMFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFramework.h; sourceTree = ""; }; + 3476EBF6180DBD3C00C71DA1 /* EMMockConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockConnectionType.h; sourceTree = ""; }; + 3476EBF7180DBD3C00C71DA1 /* EMMockDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockDevice.h; sourceTree = ""; }; + 3476EBF8180DBD3C00C71DA1 /* EMResourceValue+CocoaAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EMResourceValue+CocoaAdditions.h"; sourceTree = ""; }; + 3476EBF9180DBD3C00C71DA1 /* EMResourceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMResourceValue.h; sourceTree = ""; }; + 3476EBFA180DBD3C00C71DA1 /* EMSchema.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSchema.h; sourceTree = ""; }; + 3476EBFB180DBD3C00C71DA1 /* EMSerialPacket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSerialPacket.h; sourceTree = ""; }; + 3476EBFC180DBD3C00C71DA1 /* EMSignalStrengthFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSignalStrengthFilter.h; sourceTree = ""; }; + 3476EBFD180DBD3C00C71DA1 /* EMTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMTypes.h; sourceTree = ""; }; + 3476EBFE180DBD3C00C71DA1 /* NSTimer+EMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+EMAdditions.h"; sourceTree = ""; }; + 3476EC01180DBD6000C71DA1 /* EMDevicePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDevicePickerViewController.h; sourceTree = ""; }; + 3476EC02180DBD6000C71DA1 /* EMDevicePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMDevicePickerViewController.m; sourceTree = ""; }; + 3476EC03180DBD6000C71DA1 /* EMConnectingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = EMConnectingView.xib; sourceTree = ""; }; + 3476EC06180DBD6D00C71DA1 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; + 3476EC08180DBE3B00C71DA1 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; + 3476EC0A180DBF4700C71DA1 /* libEMFramework.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libEMFramework.a; path = EmmocoMobileFramework/Framework/libEMFramework.a; sourceTree = ""; }; + 3476EC0C180DC02000C71DA1 /* ex_compound.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = ex_compound.json; sourceTree = ""; }; + 3476EC0E180DC1A400C71DA1 /* EMCompoundExampleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMCompoundExampleViewController.h; sourceTree = ""; }; + 3476EC0F180DC1A400C71DA1 /* EMCompoundExampleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMCompoundExampleViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3476EBB2180DBD0B00C71DA1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EC09180DBE3B00C71DA1 /* CoreBluetooth.framework in Frameworks */, + 3476EBBB180DBD0B00C71DA1 /* CoreGraphics.framework in Frameworks */, + 3476EBBD180DBD0B00C71DA1 /* UIKit.framework in Frameworks */, + 3476EBB9180DBD0B00C71DA1 /* Foundation.framework in Frameworks */, + 3476EC0B180DBF4700C71DA1 /* libEMFramework.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EBCD180DBD0B00C71DA1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBD2180DBD0B00C71DA1 /* XCTest.framework in Frameworks */, + 3476EBD4180DBD0B00C71DA1 /* UIKit.framework in Frameworks */, + 3476EBD3180DBD0B00C71DA1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3476EBAC180DBD0B00C71DA1 = { + isa = PBXGroup; + children = ( + 3476EBBE180DBD0B00C71DA1 /* Compound Example */, + 3476EBD7180DBD0B00C71DA1 /* Compound ExampleTests */, + 3476EBB7180DBD0B00C71DA1 /* Frameworks */, + 3476EBB6180DBD0B00C71DA1 /* Products */, + ); + sourceTree = ""; + }; + 3476EBB6180DBD0B00C71DA1 /* Products */ = { + isa = PBXGroup; + children = ( + 3476EBB5180DBD0B00C71DA1 /* Ex_Compound.app */, + 3476EBD0180DBD0B00C71DA1 /* Ex_CompoundTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 3476EBB7180DBD0B00C71DA1 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 3476EC0A180DBF4700C71DA1 /* libEMFramework.a */, + 3476EC08180DBE3B00C71DA1 /* CoreBluetooth.framework */, + 3476EBB8180DBD0B00C71DA1 /* Foundation.framework */, + 3476EBBA180DBD0B00C71DA1 /* CoreGraphics.framework */, + 3476EBBC180DBD0B00C71DA1 /* UIKit.framework */, + 3476EBD1180DBD0B00C71DA1 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 3476EBBE180DBD0B00C71DA1 /* Compound Example */ = { + isa = PBXGroup; + children = ( + 3476EBE7180DBD2900C71DA1 /* Framework */, + 3476EBC7180DBD0B00C71DA1 /* EMAppDelegate.h */, + 3476EBC8180DBD0B00C71DA1 /* EMAppDelegate.m */, + 3476EC01180DBD6000C71DA1 /* EMDevicePickerViewController.h */, + 3476EC02180DBD6000C71DA1 /* EMDevicePickerViewController.m */, + 3476EC03180DBD6000C71DA1 /* EMConnectingView.xib */, + 3476EBCA180DBD0B00C71DA1 /* Images.xcassets */, + 3476EBBF180DBD0B00C71DA1 /* Supporting Files */, + 3476EC06180DBD6D00C71DA1 /* Storyboard.storyboard */, + 3476EC0E180DC1A400C71DA1 /* EMCompoundExampleViewController.h */, + 3476EC0F180DC1A400C71DA1 /* EMCompoundExampleViewController.m */, + 340098A51860F0F900DE02A9 /* EMCompoundResourceCell.h */, + 340098A61860F0F900DE02A9 /* EMCompoundResourceCell.m */, + ); + path = "Compound Example"; + sourceTree = ""; + }; + 3476EBBF180DBD0B00C71DA1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3476EBC0180DBD0B00C71DA1 /* Ex_Compound-Info.plist */, + 3476EBC1180DBD0B00C71DA1 /* InfoPlist.strings */, + 3476EBC4180DBD0B00C71DA1 /* main.m */, + 3476EBC6180DBD0B00C71DA1 /* Ex_Compound-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3476EBD7180DBD0B00C71DA1 /* Compound ExampleTests */ = { + isa = PBXGroup; + children = ( + 3476EBDD180DBD0B00C71DA1 /* Compound_ExampleTests.m */, + 3476EBD8180DBD0B00C71DA1 /* Supporting Files */, + ); + path = "Compound ExampleTests"; + sourceTree = ""; + }; + 3476EBD8180DBD0B00C71DA1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3476EBD9180DBD0B00C71DA1 /* Ex_CompoundTests-Info.plist */, + 3476EBDA180DBD0B00C71DA1 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3476EBE7180DBD2900C71DA1 /* Framework */ = { + isa = PBXGroup; + children = ( + 3476EBEA180DBD3C00C71DA1 /* Headers */, + 3476EBE8180DBD3400C71DA1 /* system.json */, + 3476EC0C180DC02000C71DA1 /* ex_compound.json */, + ); + name = Framework; + sourceTree = ""; + }; + 3476EBEA180DBD3C00C71DA1 /* Headers */ = { + isa = PBXGroup; + children = ( + 3476EBEB180DBD3C00C71DA1 /* EMBluetoothLowEnergyConnectionType.h */, + 3476EBEC180DBD3C00C71DA1 /* EMChecksum.h */, + 3476EBED180DBD3C00C71DA1 /* EMConnection.h */, + 3476EBEE180DBD3C00C71DA1 /* EMConnectionIndicator.h */, + 3476EBEF180DBD3C00C71DA1 /* EMConnectionListManager.h */, + 3476EBF0180DBD3C00C71DA1 /* EMConnectionListView.h */, + 3476EBF1180DBD3C00C71DA1 /* EMConnectionManager.h */, + 3476EBF2180DBD3C00C71DA1 /* EMConnectionPickerDelegate.h */, + 3476EBF3180DBD3C00C71DA1 /* EMConnectionType.h */, + 3476EBF4180DBD3C00C71DA1 /* EMDeviceBasicDescription.h */, + 3476EBF5180DBD3C00C71DA1 /* EMFramework.h */, + 3476EBF6180DBD3C00C71DA1 /* EMMockConnectionType.h */, + 3476EBF7180DBD3C00C71DA1 /* EMMockDevice.h */, + 3476EBF8180DBD3C00C71DA1 /* EMResourceValue+CocoaAdditions.h */, + 3476EBF9180DBD3C00C71DA1 /* EMResourceValue.h */, + 3476EBFA180DBD3C00C71DA1 /* EMSchema.h */, + 3476EBFB180DBD3C00C71DA1 /* EMSerialPacket.h */, + 3476EBFC180DBD3C00C71DA1 /* EMSignalStrengthFilter.h */, + 3476EBFD180DBD3C00C71DA1 /* EMTypes.h */, + 3476EBFE180DBD3C00C71DA1 /* NSTimer+EMAdditions.h */, + ); + name = Headers; + path = EmmocoMobileFramework/Headers; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3476EBB4180DBD0B00C71DA1 /* Ex_Compound */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3476EBE1180DBD0B00C71DA1 /* Build configuration list for PBXNativeTarget "Ex_Compound" */; + buildPhases = ( + 3476EBB1180DBD0B00C71DA1 /* Sources */, + 3476EBB2180DBD0B00C71DA1 /* Frameworks */, + 3476EBB3180DBD0B00C71DA1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Ex_Compound; + productName = "Compound Example"; + productReference = 3476EBB5180DBD0B00C71DA1 /* Ex_Compound.app */; + productType = "com.apple.product-type.application"; + }; + 3476EBCF180DBD0B00C71DA1 /* Ex_CompoundTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3476EBE4180DBD0B00C71DA1 /* Build configuration list for PBXNativeTarget "Ex_CompoundTests" */; + buildPhases = ( + 3476EBCC180DBD0B00C71DA1 /* Sources */, + 3476EBCD180DBD0B00C71DA1 /* Frameworks */, + 3476EBCE180DBD0B00C71DA1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3476EBD6180DBD0B00C71DA1 /* PBXTargetDependency */, + ); + name = Ex_CompoundTests; + productName = "Compound ExampleTests"; + productReference = 3476EBD0180DBD0B00C71DA1 /* Ex_CompoundTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3476EBAD180DBD0B00C71DA1 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 3476EBCF180DBD0B00C71DA1 = { + TestTargetID = 3476EBB4180DBD0B00C71DA1; + }; + }; + }; + buildConfigurationList = 3476EBB0180DBD0B00C71DA1 /* Build configuration list for PBXProject "Ex_Compound" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 3476EBAC180DBD0B00C71DA1; + productRefGroup = 3476EBB6180DBD0B00C71DA1 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3476EBB4180DBD0B00C71DA1 /* Ex_Compound */, + 3476EBCF180DBD0B00C71DA1 /* Ex_CompoundTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3476EBB3180DBD0B00C71DA1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBC3180DBD0B00C71DA1 /* InfoPlist.strings in Resources */, + 3476EBCB180DBD0B00C71DA1 /* Images.xcassets in Resources */, + 3476EC05180DBD6000C71DA1 /* EMConnectingView.xib in Resources */, + 3476EBE9180DBD3400C71DA1 /* system.json in Resources */, + 3476EC07180DBD6D00C71DA1 /* Storyboard.storyboard in Resources */, + 3476EC0D180DC02000C71DA1 /* ex_compound.json in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EBCE180DBD0B00C71DA1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBDC180DBD0B00C71DA1 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3476EBB1180DBD0B00C71DA1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBC9180DBD0B00C71DA1 /* EMAppDelegate.m in Sources */, + 3476EBC5180DBD0B00C71DA1 /* main.m in Sources */, + 340098A71860F0F900DE02A9 /* EMCompoundResourceCell.m in Sources */, + 3476EC10180DC1A400C71DA1 /* EMCompoundExampleViewController.m in Sources */, + 3476EC04180DBD6000C71DA1 /* EMDevicePickerViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EBCC180DBD0B00C71DA1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBDE180DBD0B00C71DA1 /* Compound_ExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3476EBD6180DBD0B00C71DA1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3476EBB4180DBD0B00C71DA1 /* Ex_Compound */; + targetProxy = 3476EBD5180DBD0B00C71DA1 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 3476EBC1180DBD0B00C71DA1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3476EBC2180DBD0B00C71DA1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 3476EBDA180DBD0B00C71DA1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3476EBDB180DBD0B00C71DA1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3476EBDF180DBD0B00C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 3476EBE0180DBD0B00C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3476EBE2180DBD0B00C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Compound Example/Ex_Compound-Prefix.pch"; + INFOPLIST_FILE = "Compound Example/Ex_Compound-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Compound; + VALID_ARCHS = "armv7 armv7s"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 3476EBE3180DBD0B00C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Compound Example/Ex_Compound-Prefix.pch"; + INFOPLIST_FILE = "Compound Example/Ex_Compound-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Compound; + VALID_ARCHS = "armv7 armv7s"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 3476EBE5180DBD0B00C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Compound Example.app/Compound Example"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Compound Example/Compound Example-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "Compound ExampleTests/Ex_CompoundTests-Info.plist"; + PRODUCT_NAME = Ex_CompoundTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 3476EBE6180DBD0B00C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Compound Example.app/Compound Example"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Compound Example/Compound Example-Prefix.pch"; + INFOPLIST_FILE = "Compound ExampleTests/Ex_CompoundTests-Info.plist"; + PRODUCT_NAME = Ex_CompoundTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3476EBB0180DBD0B00C71DA1 /* Build configuration list for PBXProject "Ex_Compound" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EBDF180DBD0B00C71DA1 /* Debug */, + 3476EBE0180DBD0B00C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3476EBE1180DBD0B00C71DA1 /* Build configuration list for PBXNativeTarget "Ex_Compound" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EBE2180DBD0B00C71DA1 /* Debug */, + 3476EBE3180DBD0B00C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3476EBE4180DBD0B00C71DA1 /* Build configuration list for PBXNativeTarget "Ex_CompoundTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EBE5180DBD0B00C71DA1 /* Debug */, + 3476EBE6180DBD0B00C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3476EBAD180DBD0B00C71DA1 /* Project object */; +} diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Assets/system.json b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/FileValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/IntValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StringValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StructValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/styles.css b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/stylesPrint.css b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/hierarchy.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/button_bar_background.png b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure.png b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure_open.png b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/library_background.png b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/title_background.png b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/index.html b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMChecksum.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnection.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionManager.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionType.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMFramework.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSchema.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSerialPacket.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMTypes.h b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/README.md b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/ios-examples-13.4.9/Ex_File/Ex_File.xcodeproj/project.pbxproj b/ios-examples-13.4.9/Ex_File/Ex_File.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c394a93 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/Ex_File.xcodeproj/project.pbxproj @@ -0,0 +1,560 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 34350F5E18086FFA00650DD1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F5D18086FFA00650DD1 /* Foundation.framework */; }; + 34350F6018086FFA00650DD1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F5F18086FFA00650DD1 /* CoreGraphics.framework */; }; + 34350F6218086FFA00650DD1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F6118086FFA00650DD1 /* UIKit.framework */; }; + 34350F6818086FFA00650DD1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 34350F6618086FFA00650DD1 /* InfoPlist.strings */; }; + 34350F6A18086FFA00650DD1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 34350F6918086FFA00650DD1 /* main.m */; }; + 34350F6E18086FFA00650DD1 /* EMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 34350F6D18086FFA00650DD1 /* EMAppDelegate.m */; }; + 34350F7018086FFA00650DD1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34350F6F18086FFA00650DD1 /* Images.xcassets */; }; + 34350F7718086FFA00650DD1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F7618086FFA00650DD1 /* XCTest.framework */; }; + 34350F7818086FFA00650DD1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F5D18086FFA00650DD1 /* Foundation.framework */; }; + 34350F7918086FFA00650DD1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350F6118086FFA00650DD1 /* UIKit.framework */; }; + 34350F8118086FFA00650DD1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 34350F7F18086FFA00650DD1 /* InfoPlist.strings */; }; + 34350F8318086FFA00650DD1 /* FileExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 34350F8218086FFA00650DD1 /* FileExampleTests.m */; }; + 34350F8F1808701000650DD1 /* EMConnectingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 34350F8C1808701000650DD1 /* EMConnectingView.xib */; }; + 34350F901808701000650DD1 /* EMDevicePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34350F8E1808701000650DD1 /* EMDevicePickerViewController.m */; }; + 34350FAC1808727C00650DD1 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 34350FAB1808727C00650DD1 /* MainStoryboard.storyboard */; }; + 34350FAE180872A200650DD1 /* ex_file.json in Resources */ = {isa = PBXBuildFile; fileRef = 34350FAD180872A200650DD1 /* ex_file.json */; }; + 34350FB01808740C00650DD1 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 34350FAF1808740C00650DD1 /* CoreBluetooth.framework */; }; + 34350FB31808779A00650DD1 /* EMFileViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34350FB21808779A00650DD1 /* EMFileViewController.m */; }; + 346454BF1891C0A300FAE32F /* libEMFramework.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 346454BE1891C0A300FAE32F /* libEMFramework.a */; }; + 346454C11891C0AE00FAE32F /* system.json in Resources */ = {isa = PBXBuildFile; fileRef = 346454C01891C0AE00FAE32F /* system.json */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 34350F7A18086FFA00650DD1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 34350F5218086FFA00650DD1 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 34350F5918086FFA00650DD1; + remoteInfo = FileExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 34350F5A18086FFA00650DD1 /* Ex_File.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ex_File.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 34350F5D18086FFA00650DD1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 34350F5F18086FFA00650DD1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 34350F6118086FFA00650DD1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 34350F6518086FFA00650DD1 /* Ex_File-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_File-Info.plist"; sourceTree = ""; }; + 34350F6718086FFA00650DD1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 34350F6918086FFA00650DD1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 34350F6B18086FFA00650DD1 /* Ex_File-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Ex_File-Prefix.pch"; sourceTree = ""; }; + 34350F6C18086FFA00650DD1 /* EMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMAppDelegate.h; sourceTree = ""; }; + 34350F6D18086FFA00650DD1 /* EMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMAppDelegate.m; sourceTree = ""; }; + 34350F6F18086FFA00650DD1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 34350F7518086FFA00650DD1 /* Ex_FileTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Ex_FileTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 34350F7618086FFA00650DD1 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 34350F7E18086FFA00650DD1 /* Ex_FileTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_FileTests-Info.plist"; sourceTree = ""; }; + 34350F8018086FFA00650DD1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 34350F8218086FFA00650DD1 /* FileExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FileExampleTests.m; sourceTree = ""; }; + 34350F8C1808701000650DD1 /* EMConnectingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = EMConnectingView.xib; sourceTree = ""; }; + 34350F8D1808701000650DD1 /* EMDevicePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDevicePickerViewController.h; sourceTree = ""; }; + 34350F8E1808701000650DD1 /* EMDevicePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMDevicePickerViewController.m; sourceTree = ""; }; + 34350FAB1808727C00650DD1 /* MainStoryboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = MainStoryboard.storyboard; sourceTree = ""; }; + 34350FAD180872A200650DD1 /* ex_file.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = ex_file.json; sourceTree = ""; }; + 34350FAF1808740C00650DD1 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; + 34350FB11808779A00650DD1 /* EMFileViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFileViewController.h; sourceTree = ""; }; + 34350FB21808779A00650DD1 /* EMFileViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMFileViewController.m; sourceTree = ""; }; + 346454AC1891C09800FAE32F /* EMBluetoothLowEnergyConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBluetoothLowEnergyConnectionType.h; sourceTree = ""; }; + 346454AD1891C09800FAE32F /* EMChecksum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMChecksum.h; sourceTree = ""; }; + 346454AE1891C09800FAE32F /* EMConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnection.h; sourceTree = ""; }; + 346454AF1891C09800FAE32F /* EMConnectionListManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListManager.h; sourceTree = ""; }; + 346454B01891C09800FAE32F /* EMConnectionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionManager.h; sourceTree = ""; }; + 346454B11891C09800FAE32F /* EMConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionType.h; sourceTree = ""; }; + 346454B21891C09800FAE32F /* EMDeviceBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDeviceBasicDescription.h; sourceTree = ""; }; + 346454B31891C09800FAE32F /* EMFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFramework.h; sourceTree = ""; }; + 346454B41891C09800FAE32F /* EMMockConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockConnectionType.h; sourceTree = ""; }; + 346454B51891C09800FAE32F /* EMMockDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockDevice.h; sourceTree = ""; }; + 346454B61891C09800FAE32F /* EMResourceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMResourceValue.h; sourceTree = ""; }; + 346454B71891C09800FAE32F /* EMResourceValue+CocoaAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EMResourceValue+CocoaAdditions.h"; sourceTree = ""; }; + 346454B81891C09800FAE32F /* EMRSSIFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMRSSIFilter.h; sourceTree = ""; }; + 346454B91891C09800FAE32F /* EMSchema.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSchema.h; sourceTree = ""; }; + 346454BA1891C09800FAE32F /* EMSerialPacket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSerialPacket.h; sourceTree = ""; }; + 346454BB1891C09800FAE32F /* EMSignalStrengthFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSignalStrengthFilter.h; sourceTree = ""; }; + 346454BC1891C09800FAE32F /* EMTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMTypes.h; sourceTree = ""; }; + 346454BD1891C09800FAE32F /* NSTimer+EMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+EMAdditions.h"; sourceTree = ""; }; + 346454BE1891C0A300FAE32F /* libEMFramework.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libEMFramework.a; path = EmmocoMobileFramework/Framework/libEMFramework.a; sourceTree = ""; }; + 346454C01891C0AE00FAE32F /* system.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = system.json; path = EmmocoMobileFramework/Assets/system.json; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 34350F5718086FFA00650DD1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350FB01808740C00650DD1 /* CoreBluetooth.framework in Frameworks */, + 34350F6018086FFA00650DD1 /* CoreGraphics.framework in Frameworks */, + 346454BF1891C0A300FAE32F /* libEMFramework.a in Frameworks */, + 34350F6218086FFA00650DD1 /* UIKit.framework in Frameworks */, + 34350F5E18086FFA00650DD1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 34350F7218086FFA00650DD1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350F7718086FFA00650DD1 /* XCTest.framework in Frameworks */, + 34350F7918086FFA00650DD1 /* UIKit.framework in Frameworks */, + 34350F7818086FFA00650DD1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 34350F5118086FFA00650DD1 = { + isa = PBXGroup; + children = ( + 34350F6318086FFA00650DD1 /* FileExample */, + 34350F7C18086FFA00650DD1 /* FileExampleTests */, + 34350F5C18086FFA00650DD1 /* Frameworks */, + 34350F5B18086FFA00650DD1 /* Products */, + ); + sourceTree = ""; + }; + 34350F5B18086FFA00650DD1 /* Products */ = { + isa = PBXGroup; + children = ( + 34350F5A18086FFA00650DD1 /* Ex_File.app */, + 34350F7518086FFA00650DD1 /* Ex_FileTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 34350F5C18086FFA00650DD1 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 346454BE1891C0A300FAE32F /* libEMFramework.a */, + 34350FAF1808740C00650DD1 /* CoreBluetooth.framework */, + 34350F5D18086FFA00650DD1 /* Foundation.framework */, + 34350F5F18086FFA00650DD1 /* CoreGraphics.framework */, + 34350F6118086FFA00650DD1 /* UIKit.framework */, + 34350F7618086FFA00650DD1 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 34350F6318086FFA00650DD1 /* FileExample */ = { + isa = PBXGroup; + children = ( + 34350F911808703100650DD1 /* Framework */, + 34350F8C1808701000650DD1 /* EMConnectingView.xib */, + 34350F8D1808701000650DD1 /* EMDevicePickerViewController.h */, + 34350F8E1808701000650DD1 /* EMDevicePickerViewController.m */, + 34350FAD180872A200650DD1 /* ex_file.json */, + 34350F6C18086FFA00650DD1 /* EMAppDelegate.h */, + 34350F6D18086FFA00650DD1 /* EMAppDelegate.m */, + 34350F6F18086FFA00650DD1 /* Images.xcassets */, + 34350F6418086FFA00650DD1 /* Supporting Files */, + 34350FAB1808727C00650DD1 /* MainStoryboard.storyboard */, + 34350FB11808779A00650DD1 /* EMFileViewController.h */, + 34350FB21808779A00650DD1 /* EMFileViewController.m */, + ); + path = FileExample; + sourceTree = ""; + }; + 34350F6418086FFA00650DD1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 34350F6518086FFA00650DD1 /* Ex_File-Info.plist */, + 34350F6618086FFA00650DD1 /* InfoPlist.strings */, + 34350F6918086FFA00650DD1 /* main.m */, + 34350F6B18086FFA00650DD1 /* Ex_File-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 34350F7C18086FFA00650DD1 /* FileExampleTests */ = { + isa = PBXGroup; + children = ( + 34350F8218086FFA00650DD1 /* FileExampleTests.m */, + 34350F7D18086FFA00650DD1 /* Supporting Files */, + ); + path = FileExampleTests; + sourceTree = ""; + }; + 34350F7D18086FFA00650DD1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 34350F7E18086FFA00650DD1 /* Ex_FileTests-Info.plist */, + 34350F7F18086FFA00650DD1 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 34350F911808703100650DD1 /* Framework */ = { + isa = PBXGroup; + children = ( + 346454C01891C0AE00FAE32F /* system.json */, + 34350F921808703B00650DD1 /* Headers */, + ); + name = Framework; + sourceTree = ""; + }; + 34350F921808703B00650DD1 /* Headers */ = { + isa = PBXGroup; + children = ( + 346454AC1891C09800FAE32F /* EMBluetoothLowEnergyConnectionType.h */, + 346454AD1891C09800FAE32F /* EMChecksum.h */, + 346454AE1891C09800FAE32F /* EMConnection.h */, + 346454AF1891C09800FAE32F /* EMConnectionListManager.h */, + 346454B01891C09800FAE32F /* EMConnectionManager.h */, + 346454B11891C09800FAE32F /* EMConnectionType.h */, + 346454B21891C09800FAE32F /* EMDeviceBasicDescription.h */, + 346454B31891C09800FAE32F /* EMFramework.h */, + 346454B41891C09800FAE32F /* EMMockConnectionType.h */, + 346454B51891C09800FAE32F /* EMMockDevice.h */, + 346454B61891C09800FAE32F /* EMResourceValue.h */, + 346454B71891C09800FAE32F /* EMResourceValue+CocoaAdditions.h */, + 346454B81891C09800FAE32F /* EMRSSIFilter.h */, + 346454B91891C09800FAE32F /* EMSchema.h */, + 346454BA1891C09800FAE32F /* EMSerialPacket.h */, + 346454BB1891C09800FAE32F /* EMSignalStrengthFilter.h */, + 346454BC1891C09800FAE32F /* EMTypes.h */, + 346454BD1891C09800FAE32F /* NSTimer+EMAdditions.h */, + ); + name = Headers; + path = EmmocoMobileFramework/Headers; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 34350F5918086FFA00650DD1 /* Ex_File */ = { + isa = PBXNativeTarget; + buildConfigurationList = 34350F8618086FFA00650DD1 /* Build configuration list for PBXNativeTarget "Ex_File" */; + buildPhases = ( + 34350F5618086FFA00650DD1 /* Sources */, + 34350F5718086FFA00650DD1 /* Frameworks */, + 34350F5818086FFA00650DD1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Ex_File; + productName = FileExample; + productReference = 34350F5A18086FFA00650DD1 /* Ex_File.app */; + productType = "com.apple.product-type.application"; + }; + 34350F7418086FFA00650DD1 /* Ex_FileTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 34350F8918086FFA00650DD1 /* Build configuration list for PBXNativeTarget "Ex_FileTests" */; + buildPhases = ( + 34350F7118086FFA00650DD1 /* Sources */, + 34350F7218086FFA00650DD1 /* Frameworks */, + 34350F7318086FFA00650DD1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 34350F7B18086FFA00650DD1 /* PBXTargetDependency */, + ); + name = Ex_FileTests; + productName = FileExampleTests; + productReference = 34350F7518086FFA00650DD1 /* Ex_FileTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 34350F5218086FFA00650DD1 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 34350F7418086FFA00650DD1 = { + TestTargetID = 34350F5918086FFA00650DD1; + }; + }; + }; + buildConfigurationList = 34350F5518086FFA00650DD1 /* Build configuration list for PBXProject "Ex_File" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 34350F5118086FFA00650DD1; + productRefGroup = 34350F5B18086FFA00650DD1 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 34350F5918086FFA00650DD1 /* Ex_File */, + 34350F7418086FFA00650DD1 /* Ex_FileTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 34350F5818086FFA00650DD1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350FAE180872A200650DD1 /* ex_file.json in Resources */, + 34350FAC1808727C00650DD1 /* MainStoryboard.storyboard in Resources */, + 346454C11891C0AE00FAE32F /* system.json in Resources */, + 34350F6818086FFA00650DD1 /* InfoPlist.strings in Resources */, + 34350F8F1808701000650DD1 /* EMConnectingView.xib in Resources */, + 34350F7018086FFA00650DD1 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 34350F7318086FFA00650DD1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350F8118086FFA00650DD1 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 34350F5618086FFA00650DD1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350F6E18086FFA00650DD1 /* EMAppDelegate.m in Sources */, + 34350F6A18086FFA00650DD1 /* main.m in Sources */, + 34350FB31808779A00650DD1 /* EMFileViewController.m in Sources */, + 34350F901808701000650DD1 /* EMDevicePickerViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 34350F7118086FFA00650DD1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34350F8318086FFA00650DD1 /* FileExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 34350F7B18086FFA00650DD1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 34350F5918086FFA00650DD1 /* Ex_File */; + targetProxy = 34350F7A18086FFA00650DD1 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 34350F6618086FFA00650DD1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 34350F6718086FFA00650DD1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 34350F7F18086FFA00650DD1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 34350F8018086FFA00650DD1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 34350F8418086FFA00650DD1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 34350F8518086FFA00650DD1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 34350F8718086FFA00650DD1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FileExample/Ex_File-Prefix.pch"; + INFOPLIST_FILE = "FileExample/Ex_File-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_File; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 34350F8818086FFA00650DD1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FileExample/Ex_File-Prefix.pch"; + INFOPLIST_FILE = "FileExample/Ex_File-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_File; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 34350F8A18086FFA00650DD1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/FileExample.app/FileExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FileExample/FileExample-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "FileExampleTests/Ex_FileTests-Info.plist"; + PRODUCT_NAME = Ex_FileTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 34350F8B18086FFA00650DD1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/FileExample.app/FileExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FileExample/FileExample-Prefix.pch"; + INFOPLIST_FILE = "FileExampleTests/Ex_FileTests-Info.plist"; + PRODUCT_NAME = Ex_FileTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 34350F5518086FFA00650DD1 /* Build configuration list for PBXProject "Ex_File" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 34350F8418086FFA00650DD1 /* Debug */, + 34350F8518086FFA00650DD1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 34350F8618086FFA00650DD1 /* Build configuration list for PBXNativeTarget "Ex_File" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 34350F8718086FFA00650DD1 /* Debug */, + 34350F8818086FFA00650DD1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 34350F8918086FFA00650DD1 /* Build configuration list for PBXNativeTarget "Ex_FileTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 34350F8A18086FFA00650DD1 /* Debug */, + 34350F8B18086FFA00650DD1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 34350F5218086FFA00650DD1 /* Project object */; +} diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.h b/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.h new file mode 100644 index 0000000..84e9132 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.h @@ -0,0 +1,16 @@ +// +// EMAppDelegate.h +// FileExample +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (nonatomic, strong) IBOutlet UINavigationController *navController; + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.m b/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.m new file mode 100644 index 0000000..5ebe2a0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMAppDelegate.m @@ -0,0 +1,67 @@ +// +// EMAppDelegate.m +// FileExample +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMAppDelegate.h" +#import "EMDevicePickerViewController.h" +#import "EMFramework.h" + +@interface EMAppDelegate () { +} + +@end + +@implementation EMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UINavigationController *navController = (UINavigationController *)[[self window] rootViewController]; + [self setNavController:navController]; + [[self navController] setDelegate:self]; + + [[EMConnectionListManager sharedManager] startUpdating]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { + if ([viewController isKindOfClass:[EMDevicePickerViewController class]]) { + [[EMConnectionManager sharedManager] disconnectWithSuccess:^{ + + } onFail:^(NSError *error) { + + }]; + } +} + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMConnectingView.xib b/ios-examples-13.4.9/Ex_File/FileExample/EMConnectingView.xib new file mode 100644 index 0000000..7e84038 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMConnectingView.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.h b/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.h new file mode 100644 index 0000000..6caaba7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.h @@ -0,0 +1,13 @@ +// +// EMDevicePickerViewController.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMDevicePickerViewController : UITableViewController + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.m b/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.m new file mode 100644 index 0000000..317f27f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMDevicePickerViewController.m @@ -0,0 +1,103 @@ +// +// EMDevicePickerViewController.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMDevicePickerViewController.h" +#import "EMFramework.h" +#import + +@interface EMDevicePickerViewController () + +@property (nonatomic, strong) IBOutlet UIView *connectingView; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; +@property (nonatomic, strong) IBOutlet UIView *popoverView; + +@end + +@implementation EMDevicePickerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[NSBundle mainBundle] loadNibNamed:@"EMConnectingView" owner:self options:nil]; + [[[self popoverView] layer] setCornerRadius:10.0f]; + [[self connectingView] setHidden:YES]; + [[self connectingView] setFrame:[[self view] bounds]]; + [[self view] addSubview:[self connectingView]]; + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@"devices" options:0 context:NULL]; +} + +-(void)_showConnectingView { + [[self activityIndicator] startAnimating]; + [[self connectingView] setHidden:NO]; +} + +-(void)_hideConnectingView { + [[self activityIndicator] stopAnimating]; + [[self connectingView] setHidden:YES]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionListManager sharedManager]) { + [[self tableView] reloadData]; + } +} + +#pragma mark - Table View Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return MAX([[[EMConnectionListManager sharedManager] devices] count], 1); +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *deviceCell = [tableView dequeueReusableCellWithIdentifier:@"DeviceCell"]; + [[deviceCell detailTextLabel] setTextColor:[UIColor darkGrayColor]]; + + EMDeviceBasicDescription *description = nil; + if ([indexPath row] < [[[EMConnectionListManager sharedManager] devices] count]) { + description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + } + + if (description) { + [[deviceCell textLabel] setText:[description name]]; + [[deviceCell detailTextLabel] setText:[NSString stringWithFormat:@"Signal Strength: %0.0f", [description signalStrength]]]; + } + else { + [[deviceCell textLabel] setText:NSLocalizedString(@"Searching for devices...", @"No devices found string")]; + [[deviceCell detailTextLabel] setText:nil]; + } + + return deviceCell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + [self _showConnectingView]; + EMDeviceBasicDescription *description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + [[EMConnectionManager sharedManager] connectDevice:description onSuccess:^{ + [self _hideConnectingView]; + [self performSegueWithIdentifier:@"ConnectionSegue" sender:self]; + } onFail:^(NSError *error) { + [self _hideConnectingView]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Connection Failed", @"Alert title") message:NSLocalizedString(@"An error occurred while trying to connect to the selected device", @"Alert message") delegate:nil cancelButtonTitle:NSLocalizedString(@"Close", @"Close button") otherButtonTitles:nil]; + [alert show]; + }]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.h b/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.h new file mode 100644 index 0000000..979767b --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.h @@ -0,0 +1,16 @@ +// +// EMFileViewController.h +// FileExample +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMFileViewController : UIViewController + +-(IBAction)readButtonPressed:(id)sender; +-(IBAction)writeButtonPressed:(id)sender; + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.m b/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.m new file mode 100644 index 0000000..86b88ef --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/EMFileViewController.m @@ -0,0 +1,95 @@ +// +// EMFileViewController.m +// FileExample +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMFileViewController.h" +#import "EMFramework.h" + +@interface EMFileViewController () { + IBOutlet UITextView *_readTextFile; + IBOutlet UITextField *_numberOfBytesField; +} + +@end + +@implementation EMFileViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [_readTextFile setText:nil]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Interface Actions + +-(IBAction)readButtonPressed:(id)sender { + [[EMConnectionManager sharedManager] readResource:@"fileData" onSuccess:^(id readValue) { + NSLog(@"%@", readValue); + [_readTextFile setText:[readValue description]]; + NSString *bytesString = [readValue length] == 1 ? @"byte" : @"bytes"; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Success" message:[NSString stringWithFormat:@"Successfully read %d %@", [readValue length], bytesString] delegate:nil cancelButtonTitle:@"Sweet!" otherButtonTitles:nil]; + [alert show]; + } onFail:^(NSError *error) { + + }]; +} + +-(IBAction)sliderValueChanged:(UISlider *)sender { + [_numberOfBytesField setText:[NSString stringWithFormat:@"%0.0f", [sender value]]]; +} + +-(IBAction)writeButtonPressed:(id)sender { + NSInteger numberOfBytes = [[_numberOfBytesField text] integerValue]; + + [[EMConnectionManager sharedManager] writeValue:[NSNumber numberWithInt:numberOfBytes] toResource:@"fileSize" onSuccess:^{ + + UInt8 *integerArray = malloc(numberOfBytes); + for (NSInteger i = 0; i < numberOfBytes; ++i) { + integerArray[i] = i; + } + + NSData *data = [NSData dataWithBytes:integerArray length:numberOfBytes]; + NSString *bytesString = numberOfBytes == 1 ? @"byte" : @"bytes"; + + [[EMConnectionManager sharedManager] writeValue:data toResource:@"fileData" onSuccess:^{ + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Success" message:[NSString stringWithFormat:@"Successfully wrote %d %@", numberOfBytes, bytesString] delegate:nil cancelButtonTitle:@"Sweet!" otherButtonTitles:nil]; + [alert show]; + } onFail:^(NSError *error) { + + }]; + + } onFail:^(NSError *error) { + + }]; +} + +#pragma mark - Text View Delegate + +- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { + if ([text isEqualToString:@"\n"]) { + [textView resignFirstResponder]; + return NO; + } + return YES; +} + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Info.plist b/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Info.plist new file mode 100644 index 0000000..85f102a --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Prefix.pch b/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Ex_File-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/Contents.json b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/FileExample/MainStoryboard.storyboard b/ios-examples-13.4.9/Ex_File/FileExample/MainStoryboard.storyboard new file mode 100644 index 0000000..1971f45 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/MainStoryboard.storyboard @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/FileExample/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_File/FileExample/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_File/FileExample/ex_file.json b/ios-examples-13.4.9/Ex_File/FileExample/ex_file.json new file mode 100644 index 0000000..5155245 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/ex_file.json @@ -0,0 +1,220 @@ +{ + "resources": { + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "fileSize": { + "id": 2, + "align": 4, + "attributes": {"readwrite": true}, + "type": "u4", + "access": "rw", + "size": 4 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$activeGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "fileData": { + "id": 1, + "align": 1, + "attributes": {"readwrite": true}, + "type": "B", + "access": "rw", + "size": 240 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 236, + 42, + 26, + 0, + 106, + 170, + 15, + 14, + 226, + 151, + 196, + 97, + 185, + 33, + 28, + 41 + ], + "toolVersion": "13.3.7.201308302156", + "name": "Ex_File", + "$$md5": "ec2a1a006aaa0f0ee297c461b9211c29", + "build": [ + 2, + 253, + 12, + 56, + 65, + 1, + 0, + 0 + ], + "date": "2013-09-19T16:07:57", + "maxAlign": 4, + "maxSize": 240, + "version": "1.0.0" + }, + "resourceNames": [ + "fileData", + "fileSize", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeGroup" + ], + "attributes": { + "description": "File example", + "version": "1.0.0" + }, + "resourceNamesApp": [ + "fileData", + "fileSize" + ], + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u4": { + "align": 4, + "size": 4 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "imports": {"@emmoco.com.Ex_File": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_File/FileExample/main.m b/ios-examples-13.4.9/Ex_File/FileExample/main.m new file mode 100644 index 0000000..380aa5d --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExample/main.m @@ -0,0 +1,18 @@ +// +// main.m +// FileExample +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +#import "EMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EMAppDelegate class])); + } +} diff --git a/ios-examples-13.4.9/Ex_File/FileExampleTests/Ex_FileTests-Info.plist b/ios-examples-13.4.9/Ex_File/FileExampleTests/Ex_FileTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExampleTests/Ex_FileTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ios-examples-13.4.9/Ex_File/FileExampleTests/FileExampleTests.m b/ios-examples-13.4.9/Ex_File/FileExampleTests/FileExampleTests.m new file mode 100644 index 0000000..89cd03f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExampleTests/FileExampleTests.m @@ -0,0 +1,34 @@ +// +// FileExampleTests.m +// FileExampleTests +// +// Created by Dexter Weiss on 10/11/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface FileExampleTests : XCTestCase + +@end + +@implementation FileExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ios-examples-13.4.9/Ex_File/FileExampleTests/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_File/FileExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_File/FileExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Assets/system.json b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/FileValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/IntValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StringValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StructValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/styles.css b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/stylesPrint.css b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/hierarchy.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/button_bar_background.png b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure.png b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure_open.png b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/library_background.png b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/title_background.png b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/index.html b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMChecksum.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnection.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionManager.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionType.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMFramework.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSchema.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSerialPacket.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMTypes.h b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/README.md b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/ios-examples-13.4.9/Ex_Indicator/Ex_Indicator.xcodeproj/project.pbxproj b/ios-examples-13.4.9/Ex_Indicator/Ex_Indicator.xcodeproj/project.pbxproj new file mode 100644 index 0000000..540ff2b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Ex_Indicator.xcodeproj/project.pbxproj @@ -0,0 +1,578 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3476EB50180DA11000C71DA1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB4F180DA11000C71DA1 /* Foundation.framework */; }; + 3476EB52180DA11000C71DA1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB51180DA11000C71DA1 /* CoreGraphics.framework */; }; + 3476EB54180DA11000C71DA1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB53180DA11000C71DA1 /* UIKit.framework */; }; + 3476EB5A180DA11000C71DA1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3476EB58180DA11000C71DA1 /* InfoPlist.strings */; }; + 3476EB5C180DA11000C71DA1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EB5B180DA11000C71DA1 /* main.m */; }; + 3476EB60180DA11000C71DA1 /* EMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EB5F180DA11000C71DA1 /* EMAppDelegate.m */; }; + 3476EB62180DA11000C71DA1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3476EB61180DA11000C71DA1 /* Images.xcassets */; }; + 3476EB69180DA11000C71DA1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB68180DA11000C71DA1 /* XCTest.framework */; }; + 3476EB6A180DA11000C71DA1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB4F180DA11000C71DA1 /* Foundation.framework */; }; + 3476EB6B180DA11000C71DA1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB53180DA11000C71DA1 /* UIKit.framework */; }; + 3476EB73180DA11000C71DA1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3476EB71180DA11000C71DA1 /* InfoPlist.strings */; }; + 3476EB75180DA11000C71DA1 /* Indicator_ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EB74180DA11000C71DA1 /* Indicator_ExampleTests.m */; }; + 3476EB81180DA12700C71DA1 /* EMDevicePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EB7F180DA12700C71DA1 /* EMDevicePickerViewController.m */; }; + 3476EB82180DA12700C71DA1 /* EMConnectingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3476EB80180DA12700C71DA1 /* EMConnectingView.xib */; }; + 3476EB87180DA15B00C71DA1 /* system.json in Resources */ = {isa = PBXBuildFile; fileRef = 3476EB86180DA15B00C71DA1 /* system.json */; }; + 3476EBA0180DA1A100C71DA1 /* libEMFramework.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EB88180DA16200C71DA1 /* libEMFramework.a */; }; + 3476EBA2180DA1A700C71DA1 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3476EBA1180DA1A700C71DA1 /* CoreBluetooth.framework */; }; + 3476EBA4180DA1C800C71DA1 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBA3180DA1C800C71DA1 /* Storyboard.storyboard */; }; + 3476EBA6180DA2A000C71DA1 /* ex_indicator.json in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBA5180DA2A000C71DA1 /* ex_indicator.json */; }; + 3476EBA9180DA2F800C71DA1 /* EMIndicatorExampleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3476EBA8180DA2F800C71DA1 /* EMIndicatorExampleViewController.m */; }; + 3476EBAB180DA6D300C71DA1 /* MSP-EXP30G2.png in Resources */ = {isa = PBXBuildFile; fileRef = 3476EBAA180DA6D300C71DA1 /* MSP-EXP30G2.png */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 3476EB6C180DA11000C71DA1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3476EB44180DA11000C71DA1 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3476EB4B180DA11000C71DA1; + remoteInfo = "Indicator Example"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3476EB4C180DA11000C71DA1 /* Ex_Indicator.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ex_Indicator.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3476EB4F180DA11000C71DA1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 3476EB51180DA11000C71DA1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 3476EB53180DA11000C71DA1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 3476EB57180DA11000C71DA1 /* Ex_Indicator-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_Indicator-Info.plist"; sourceTree = ""; }; + 3476EB59180DA11000C71DA1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3476EB5B180DA11000C71DA1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 3476EB5D180DA11000C71DA1 /* Ex_Indicator-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Ex_Indicator-Prefix.pch"; sourceTree = ""; }; + 3476EB5E180DA11000C71DA1 /* EMAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EMAppDelegate.h; sourceTree = ""; }; + 3476EB5F180DA11000C71DA1 /* EMAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EMAppDelegate.m; sourceTree = ""; }; + 3476EB61180DA11000C71DA1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 3476EB67180DA11000C71DA1 /* Ex_IndicatorTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Ex_IndicatorTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3476EB68180DA11000C71DA1 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 3476EB70180DA11000C71DA1 /* Ex_IndicatorTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Ex_IndicatorTests-Info.plist"; sourceTree = ""; }; + 3476EB72180DA11000C71DA1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3476EB74180DA11000C71DA1 /* Indicator_ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Indicator_ExampleTests.m; sourceTree = ""; }; + 3476EB7E180DA12700C71DA1 /* EMDevicePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDevicePickerViewController.h; sourceTree = ""; }; + 3476EB7F180DA12700C71DA1 /* EMDevicePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMDevicePickerViewController.m; sourceTree = ""; }; + 3476EB80180DA12700C71DA1 /* EMConnectingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = EMConnectingView.xib; sourceTree = ""; }; + 3476EB86180DA15B00C71DA1 /* system.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = system.json; path = EmmocoMobileFramework/Assets/system.json; sourceTree = SOURCE_ROOT; }; + 3476EB88180DA16200C71DA1 /* libEMFramework.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libEMFramework.a; path = EmmocoMobileFramework/Framework/libEMFramework.a; sourceTree = SOURCE_ROOT; }; + 3476EB8C180DA19800C71DA1 /* EMBluetoothLowEnergyConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBluetoothLowEnergyConnectionType.h; sourceTree = ""; }; + 3476EB8D180DA19800C71DA1 /* EMChecksum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMChecksum.h; sourceTree = ""; }; + 3476EB8E180DA19800C71DA1 /* EMConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnection.h; sourceTree = ""; }; + 3476EB8F180DA19800C71DA1 /* EMConnectionIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionIndicator.h; sourceTree = ""; }; + 3476EB90180DA19800C71DA1 /* EMConnectionListManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListManager.h; sourceTree = ""; }; + 3476EB91180DA19800C71DA1 /* EMConnectionListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListView.h; sourceTree = ""; }; + 3476EB92180DA19800C71DA1 /* EMConnectionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionManager.h; sourceTree = ""; }; + 3476EB93180DA19800C71DA1 /* EMConnectionPickerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionPickerDelegate.h; sourceTree = ""; }; + 3476EB94180DA19800C71DA1 /* EMConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionType.h; sourceTree = ""; }; + 3476EB95180DA19800C71DA1 /* EMDeviceBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDeviceBasicDescription.h; sourceTree = ""; }; + 3476EB96180DA19800C71DA1 /* EMFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFramework.h; sourceTree = ""; }; + 3476EB97180DA19800C71DA1 /* EMMockConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockConnectionType.h; sourceTree = ""; }; + 3476EB98180DA19800C71DA1 /* EMMockDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockDevice.h; sourceTree = ""; }; + 3476EB99180DA19800C71DA1 /* EMResourceValue+CocoaAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EMResourceValue+CocoaAdditions.h"; sourceTree = ""; }; + 3476EB9A180DA19800C71DA1 /* EMResourceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMResourceValue.h; sourceTree = ""; }; + 3476EB9B180DA19800C71DA1 /* EMSchema.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSchema.h; sourceTree = ""; }; + 3476EB9C180DA19800C71DA1 /* EMSerialPacket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSerialPacket.h; sourceTree = ""; }; + 3476EB9D180DA19800C71DA1 /* EMSignalStrengthFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSignalStrengthFilter.h; sourceTree = ""; }; + 3476EB9E180DA19800C71DA1 /* EMTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMTypes.h; sourceTree = ""; }; + 3476EB9F180DA19800C71DA1 /* NSTimer+EMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+EMAdditions.h"; sourceTree = ""; }; + 3476EBA1180DA1A700C71DA1 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; + 3476EBA3180DA1C800C71DA1 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; + 3476EBA5180DA2A000C71DA1 /* ex_indicator.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = ex_indicator.json; sourceTree = ""; }; + 3476EBA7180DA2F800C71DA1 /* EMIndicatorExampleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMIndicatorExampleViewController.h; sourceTree = ""; }; + 3476EBA8180DA2F800C71DA1 /* EMIndicatorExampleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EMIndicatorExampleViewController.m; sourceTree = ""; }; + 3476EBAA180DA6D300C71DA1 /* MSP-EXP30G2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "MSP-EXP30G2.png"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3476EB49180DA11000C71DA1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBA2180DA1A700C71DA1 /* CoreBluetooth.framework in Frameworks */, + 3476EB52180DA11000C71DA1 /* CoreGraphics.framework in Frameworks */, + 3476EB54180DA11000C71DA1 /* UIKit.framework in Frameworks */, + 3476EB50180DA11000C71DA1 /* Foundation.framework in Frameworks */, + 3476EBA0180DA1A100C71DA1 /* libEMFramework.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EB64180DA11000C71DA1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EB69180DA11000C71DA1 /* XCTest.framework in Frameworks */, + 3476EB6B180DA11000C71DA1 /* UIKit.framework in Frameworks */, + 3476EB6A180DA11000C71DA1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 34327E0818107D590045FC61 /* Device Picker */ = { + isa = PBXGroup; + children = ( + 3476EB7E180DA12700C71DA1 /* EMDevicePickerViewController.h */, + 3476EB7F180DA12700C71DA1 /* EMDevicePickerViewController.m */, + 3476EB80180DA12700C71DA1 /* EMConnectingView.xib */, + ); + name = "Device Picker"; + sourceTree = ""; + }; + 3476EB43180DA11000C71DA1 = { + isa = PBXGroup; + children = ( + 3476EB55180DA11000C71DA1 /* Indicator Example */, + 3476EB6E180DA11000C71DA1 /* Indicator ExampleTests */, + 3476EB4E180DA11000C71DA1 /* Frameworks */, + 3476EB4D180DA11000C71DA1 /* Products */, + ); + sourceTree = ""; + }; + 3476EB4D180DA11000C71DA1 /* Products */ = { + isa = PBXGroup; + children = ( + 3476EB4C180DA11000C71DA1 /* Ex_Indicator.app */, + 3476EB67180DA11000C71DA1 /* Ex_IndicatorTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 3476EB4E180DA11000C71DA1 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 3476EBA1180DA1A700C71DA1 /* CoreBluetooth.framework */, + 3476EB4F180DA11000C71DA1 /* Foundation.framework */, + 3476EB51180DA11000C71DA1 /* CoreGraphics.framework */, + 3476EB53180DA11000C71DA1 /* UIKit.framework */, + 3476EB68180DA11000C71DA1 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 3476EB55180DA11000C71DA1 /* Indicator Example */ = { + isa = PBXGroup; + children = ( + 3476EB8A180DA16600C71DA1 /* EMFramework */, + 34327E0818107D590045FC61 /* Device Picker */, + 3476EB5E180DA11000C71DA1 /* EMAppDelegate.h */, + 3476EB5F180DA11000C71DA1 /* EMAppDelegate.m */, + 3476EB61180DA11000C71DA1 /* Images.xcassets */, + 3476EBAA180DA6D300C71DA1 /* MSP-EXP30G2.png */, + 3476EB56180DA11000C71DA1 /* Supporting Files */, + 3476EBA3180DA1C800C71DA1 /* Storyboard.storyboard */, + 3476EBA7180DA2F800C71DA1 /* EMIndicatorExampleViewController.h */, + 3476EBA8180DA2F800C71DA1 /* EMIndicatorExampleViewController.m */, + ); + path = "Indicator Example"; + sourceTree = ""; + }; + 3476EB56180DA11000C71DA1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3476EB57180DA11000C71DA1 /* Ex_Indicator-Info.plist */, + 3476EB58180DA11000C71DA1 /* InfoPlist.strings */, + 3476EB5B180DA11000C71DA1 /* main.m */, + 3476EB5D180DA11000C71DA1 /* Ex_Indicator-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3476EB6E180DA11000C71DA1 /* Indicator ExampleTests */ = { + isa = PBXGroup; + children = ( + 3476EB74180DA11000C71DA1 /* Indicator_ExampleTests.m */, + 3476EB6F180DA11000C71DA1 /* Supporting Files */, + ); + path = "Indicator ExampleTests"; + sourceTree = ""; + }; + 3476EB6F180DA11000C71DA1 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3476EB70180DA11000C71DA1 /* Ex_IndicatorTests-Info.plist */, + 3476EB71180DA11000C71DA1 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3476EB8A180DA16600C71DA1 /* EMFramework */ = { + isa = PBXGroup; + children = ( + 3476EB8B180DA19800C71DA1 /* Headers */, + 3476EB88180DA16200C71DA1 /* libEMFramework.a */, + 3476EB86180DA15B00C71DA1 /* system.json */, + 3476EBA5180DA2A000C71DA1 /* ex_indicator.json */, + ); + name = EMFramework; + sourceTree = ""; + }; + 3476EB8B180DA19800C71DA1 /* Headers */ = { + isa = PBXGroup; + children = ( + 3476EB8C180DA19800C71DA1 /* EMBluetoothLowEnergyConnectionType.h */, + 3476EB8D180DA19800C71DA1 /* EMChecksum.h */, + 3476EB8E180DA19800C71DA1 /* EMConnection.h */, + 3476EB8F180DA19800C71DA1 /* EMConnectionIndicator.h */, + 3476EB90180DA19800C71DA1 /* EMConnectionListManager.h */, + 3476EB91180DA19800C71DA1 /* EMConnectionListView.h */, + 3476EB92180DA19800C71DA1 /* EMConnectionManager.h */, + 3476EB93180DA19800C71DA1 /* EMConnectionPickerDelegate.h */, + 3476EB94180DA19800C71DA1 /* EMConnectionType.h */, + 3476EB95180DA19800C71DA1 /* EMDeviceBasicDescription.h */, + 3476EB96180DA19800C71DA1 /* EMFramework.h */, + 3476EB97180DA19800C71DA1 /* EMMockConnectionType.h */, + 3476EB98180DA19800C71DA1 /* EMMockDevice.h */, + 3476EB99180DA19800C71DA1 /* EMResourceValue+CocoaAdditions.h */, + 3476EB9A180DA19800C71DA1 /* EMResourceValue.h */, + 3476EB9B180DA19800C71DA1 /* EMSchema.h */, + 3476EB9C180DA19800C71DA1 /* EMSerialPacket.h */, + 3476EB9D180DA19800C71DA1 /* EMSignalStrengthFilter.h */, + 3476EB9E180DA19800C71DA1 /* EMTypes.h */, + 3476EB9F180DA19800C71DA1 /* NSTimer+EMAdditions.h */, + ); + name = Headers; + path = EmmocoMobileFramework/Headers; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3476EB4B180DA11000C71DA1 /* Ex_Indicator */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3476EB78180DA11000C71DA1 /* Build configuration list for PBXNativeTarget "Ex_Indicator" */; + buildPhases = ( + 3476EB48180DA11000C71DA1 /* Sources */, + 3476EB49180DA11000C71DA1 /* Frameworks */, + 3476EB4A180DA11000C71DA1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Ex_Indicator; + productName = "Indicator Example"; + productReference = 3476EB4C180DA11000C71DA1 /* Ex_Indicator.app */; + productType = "com.apple.product-type.application"; + }; + 3476EB66180DA11000C71DA1 /* Ex_IndicatorTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3476EB7B180DA11000C71DA1 /* Build configuration list for PBXNativeTarget "Ex_IndicatorTests" */; + buildPhases = ( + 3476EB63180DA11000C71DA1 /* Sources */, + 3476EB64180DA11000C71DA1 /* Frameworks */, + 3476EB65180DA11000C71DA1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3476EB6D180DA11000C71DA1 /* PBXTargetDependency */, + ); + name = Ex_IndicatorTests; + productName = "Indicator ExampleTests"; + productReference = 3476EB67180DA11000C71DA1 /* Ex_IndicatorTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3476EB44180DA11000C71DA1 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 3476EB66180DA11000C71DA1 = { + TestTargetID = 3476EB4B180DA11000C71DA1; + }; + }; + }; + buildConfigurationList = 3476EB47180DA11000C71DA1 /* Build configuration list for PBXProject "Ex_Indicator" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 3476EB43180DA11000C71DA1; + productRefGroup = 3476EB4D180DA11000C71DA1 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3476EB4B180DA11000C71DA1 /* Ex_Indicator */, + 3476EB66180DA11000C71DA1 /* Ex_IndicatorTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3476EB4A180DA11000C71DA1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EBA6180DA2A000C71DA1 /* ex_indicator.json in Resources */, + 3476EB87180DA15B00C71DA1 /* system.json in Resources */, + 3476EBAB180DA6D300C71DA1 /* MSP-EXP30G2.png in Resources */, + 3476EB5A180DA11000C71DA1 /* InfoPlist.strings in Resources */, + 3476EB82180DA12700C71DA1 /* EMConnectingView.xib in Resources */, + 3476EB62180DA11000C71DA1 /* Images.xcassets in Resources */, + 3476EBA4180DA1C800C71DA1 /* Storyboard.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EB65180DA11000C71DA1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EB73180DA11000C71DA1 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3476EB48180DA11000C71DA1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EB60180DA11000C71DA1 /* EMAppDelegate.m in Sources */, + 3476EB5C180DA11000C71DA1 /* main.m in Sources */, + 3476EB81180DA12700C71DA1 /* EMDevicePickerViewController.m in Sources */, + 3476EBA9180DA2F800C71DA1 /* EMIndicatorExampleViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3476EB63180DA11000C71DA1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3476EB75180DA11000C71DA1 /* Indicator_ExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3476EB6D180DA11000C71DA1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3476EB4B180DA11000C71DA1 /* Ex_Indicator */; + targetProxy = 3476EB6C180DA11000C71DA1 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 3476EB58180DA11000C71DA1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3476EB59180DA11000C71DA1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 3476EB71180DA11000C71DA1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3476EB72180DA11000C71DA1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3476EB76180DA11000C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 3476EB77180DA11000C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3476EB79180DA11000C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Indicator Example/Ex_Indicator-Prefix.pch"; + INFOPLIST_FILE = "Indicator Example/Ex_Indicator-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Indicator; + VALID_ARCHS = "armv7 armv7s arm64"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 3476EB7A180DA11000C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Indicator Example/Ex_Indicator-Prefix.pch"; + INFOPLIST_FILE = "Indicator Example/Ex_Indicator-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ./EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Ex_Indicator; + VALID_ARCHS = "armv7 armv7s arm64"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 3476EB7C180DA11000C71DA1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Indicator Example.app/Indicator Example"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Indicator Example/Indicator Example-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "Indicator ExampleTests/Ex_IndicatorTests-Info.plist"; + PRODUCT_NAME = Ex_IndicatorTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 3476EB7D180DA11000C71DA1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Indicator Example.app/Indicator Example"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Indicator Example/Indicator Example-Prefix.pch"; + INFOPLIST_FILE = "Indicator ExampleTests/Ex_IndicatorTests-Info.plist"; + PRODUCT_NAME = Ex_IndicatorTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3476EB47180DA11000C71DA1 /* Build configuration list for PBXProject "Ex_Indicator" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EB76180DA11000C71DA1 /* Debug */, + 3476EB77180DA11000C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3476EB78180DA11000C71DA1 /* Build configuration list for PBXNativeTarget "Ex_Indicator" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EB79180DA11000C71DA1 /* Debug */, + 3476EB7A180DA11000C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3476EB7B180DA11000C71DA1 /* Build configuration list for PBXNativeTarget "Ex_IndicatorTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3476EB7C180DA11000C71DA1 /* Debug */, + 3476EB7D180DA11000C71DA1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3476EB44180DA11000C71DA1 /* Project object */; +} diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.h b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.h new file mode 100644 index 0000000..8ce3870 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.h @@ -0,0 +1,16 @@ +// +// EMAppDelegate.h +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (nonatomic, strong) UINavigationController *navController; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.m b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.m new file mode 100644 index 0000000..af9ecb6 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMAppDelegate.m @@ -0,0 +1,64 @@ +// +// EMAppDelegate.m +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMAppDelegate.h" +#import "EMFramework.h" +#import "EMDevicePickerViewController.h" + +@implementation EMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UINavigationController *navController = (UINavigationController *)[[self window] rootViewController]; + [self setNavController:navController]; + [[self navController] setDelegate:self]; + + [[EMConnectionListManager sharedManager] startUpdating]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + [[EMConnectionListManager sharedManager] startUpdating]; +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +#pragma mark - Navigation Controller + +- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { + if ([viewController isKindOfClass:[EMDevicePickerViewController class]]) { + [[EMConnectionManager sharedManager] disconnectWithSuccess:^{ + + } onFail:^(NSError *error) { + + }]; + } +} + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMConnectingView.xib b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMConnectingView.xib new file mode 100644 index 0000000..7e84038 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMConnectingView.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.h b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.h new file mode 100644 index 0000000..6caaba7 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.h @@ -0,0 +1,13 @@ +// +// EMDevicePickerViewController.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMDevicePickerViewController : UITableViewController + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.m b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.m new file mode 100644 index 0000000..317f27f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMDevicePickerViewController.m @@ -0,0 +1,103 @@ +// +// EMDevicePickerViewController.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMDevicePickerViewController.h" +#import "EMFramework.h" +#import + +@interface EMDevicePickerViewController () + +@property (nonatomic, strong) IBOutlet UIView *connectingView; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; +@property (nonatomic, strong) IBOutlet UIView *popoverView; + +@end + +@implementation EMDevicePickerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[NSBundle mainBundle] loadNibNamed:@"EMConnectingView" owner:self options:nil]; + [[[self popoverView] layer] setCornerRadius:10.0f]; + [[self connectingView] setHidden:YES]; + [[self connectingView] setFrame:[[self view] bounds]]; + [[self view] addSubview:[self connectingView]]; + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@"devices" options:0 context:NULL]; +} + +-(void)_showConnectingView { + [[self activityIndicator] startAnimating]; + [[self connectingView] setHidden:NO]; +} + +-(void)_hideConnectingView { + [[self activityIndicator] stopAnimating]; + [[self connectingView] setHidden:YES]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionListManager sharedManager]) { + [[self tableView] reloadData]; + } +} + +#pragma mark - Table View Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return MAX([[[EMConnectionListManager sharedManager] devices] count], 1); +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *deviceCell = [tableView dequeueReusableCellWithIdentifier:@"DeviceCell"]; + [[deviceCell detailTextLabel] setTextColor:[UIColor darkGrayColor]]; + + EMDeviceBasicDescription *description = nil; + if ([indexPath row] < [[[EMConnectionListManager sharedManager] devices] count]) { + description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + } + + if (description) { + [[deviceCell textLabel] setText:[description name]]; + [[deviceCell detailTextLabel] setText:[NSString stringWithFormat:@"Signal Strength: %0.0f", [description signalStrength]]]; + } + else { + [[deviceCell textLabel] setText:NSLocalizedString(@"Searching for devices...", @"No devices found string")]; + [[deviceCell detailTextLabel] setText:nil]; + } + + return deviceCell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + [self _showConnectingView]; + EMDeviceBasicDescription *description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + [[EMConnectionManager sharedManager] connectDevice:description onSuccess:^{ + [self _hideConnectingView]; + [self performSegueWithIdentifier:@"ConnectionSegue" sender:self]; + } onFail:^(NSError *error) { + [self _hideConnectingView]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Connection Failed", @"Alert title") message:NSLocalizedString(@"An error occurred while trying to connect to the selected device", @"Alert message") delegate:nil cancelButtonTitle:NSLocalizedString(@"Close", @"Close button") otherButtonTitles:nil]; + [alert show]; + }]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.h b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.h new file mode 100644 index 0000000..2858e05 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.h @@ -0,0 +1,15 @@ +// +// EMIndicatorExampleViewController.h +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMIndicatorExampleViewController : UIViewController + +-(IBAction)segmentedControlDidChange:(UISegmentedControl *)sender; + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.m b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.m new file mode 100644 index 0000000..f25ce3d --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/EMIndicatorExampleViewController.m @@ -0,0 +1,113 @@ +// +// EMIndicatorExampleViewController.m +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMIndicatorExampleViewController.h" +#import "EMFramework.h" + +@interface EMIndicatorExampleViewController () { + IBOutlet UISegmentedControl *_segmentedControl; + IBOutlet UILabel *_indicatorLabel; + NSTimer *_fadeTimer; +} + +@end + +@implementation EMIndicatorExampleViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [self setTitle:[[[EMConnectionManager sharedManager] connectedDevice] name]]; + [[EMConnectionManager sharedManager] readResource:@"eventSelector" onSuccess:^(id readValue) { + [self _updateSegmentedControlSelectedIndex:readValue]; + } onFail:^(NSError *error) { + NSLog(@"%@", [error localizedDescription]); + }]; + + [_indicatorLabel setAlpha:0.0f]; + + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveNotification:) name:kEMConnectionDidReceiveIndicatorNotificationName object:nil]; +} + +-(void)didReceiveNotification:(NSNotification *)notification { + id notificationValue = [[notification userInfo] objectForKey:kEMIndicatorResourceValueKey]; + NSString *resourceName = [[notification userInfo] objectForKey:kEMIndicatorNameKey]; + NSString *indicatorString = [NSString stringWithFormat:@"%@ indicator received\nValue: %@", resourceName, [notificationValue stringValue]]; + [_indicatorLabel setAlpha:0.0f]; + [_indicatorLabel setText:indicatorString]; + [UIView animateWithDuration:0.2 animations:^{ + [_indicatorLabel setAlpha:1.0f]; + } completion:^(BOOL finished) { + [self _startLabelTimer]; + }]; +} + +-(void)_startLabelTimer { + [_fadeTimer invalidate]; + _fadeTimer = [NSTimer timerWithTimeInterval:3.0f target:self selector:@selector(fadeLabel) userInfo:nil repeats:NO]; + [[NSRunLoop currentRunLoop] addTimer:_fadeTimer forMode:NSDefaultRunLoopMode]; +} + +-(void)fadeLabel { + [_fadeTimer invalidate]; + [UIView animateWithDuration:0.3 animations:^{ + [_indicatorLabel setAlpha:0.0f]; + }]; +} + +-(void)_updateSegmentedControlSelectedIndex:(NSString *)eventValue { + if ([eventValue isEqualToString:@"NONE"]) { + [_segmentedControl setSelectedSegmentIndex:0]; + } + else if ([eventValue isEqualToString:@"VOID_EVENT"]) { + [_segmentedControl setSelectedSegmentIndex:1]; + } + else if ([eventValue isEqualToString:@"UINT8_EVENT"]) { + [_segmentedControl setSelectedSegmentIndex:2]; + } + else if ([eventValue isEqualToString:@"INT32_EVENT"]) { + [_segmentedControl setSelectedSegmentIndex:3]; + } +} + +#pragma mark - Interface actions + +-(IBAction)segmentedControlDidChange:(UISegmentedControl *)sender { + NSString *indicatorType = nil; + switch ([sender selectedSegmentIndex]) { + case 0: + indicatorType = @"NONE"; + break; + case 1: + indicatorType = @"VOID_EVENT"; + break; + case 2: + indicatorType = @"UINT8_EVENT"; + break; + case 3: + indicatorType = @"INT32_EVENT"; + break; + } + + [[EMConnectionManager sharedManager] writeValue:indicatorType toResource:@"eventSelector" onSuccess:^{ + NSLog(@"Successfully wrote event type"); + } onFail:^(NSError *error) { + NSLog(@"%@", [error localizedDescription]); + }]; +} + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Info.plist b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Info.plist new file mode 100644 index 0000000..c85764b --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Storyboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Prefix.pch b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Ex_Indicator-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/Contents.json b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/LaunchImage.launchimage/Contents.json b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/MSP-EXP30G2.png b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/MSP-EXP30G2.png new file mode 100644 index 0000000..de64abf --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/MSP-EXP30G2.png diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Storyboard.storyboard b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Storyboard.storyboard new file mode 100644 index 0000000..471a688 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/Storyboard.storyboard @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/ex_indicator.json b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/ex_indicator.json new file mode 100644 index 0000000..91709c8 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/ex_indicator.json @@ -0,0 +1,257 @@ +{ + "resources": { + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "eventA": { + "id": 2, + "align": 0, + "attributes": {"indicator": true}, + "type": "v", + "access": "ir", + "size": 0 + }, + "$activeGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "eventC": { + "id": 4, + "align": 4, + "attributes": {"indicator": true}, + "type": "i4", + "access": "ir", + "size": 4 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "eventB": { + "id": 3, + "align": 1, + "attributes": {"indicator": true}, + "type": "u1", + "access": "ir", + "size": 1 + }, + "eventSelector": { + "id": 1, + "align": 1, + "pack": 2, + "attributes": {}, + "type": "E:@emmoco.com.Ex_Indicator/EventSelector", + "access": "rw", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 8, + 232, + 185, + 66, + 161, + 221, + 7, + 132, + 242, + 133, + 227, + 71, + 50, + 175, + 195, + 30 + ], + "toolVersion": "13.3.7.201308302156", + "name": "Ex_Indicator", + "$$md5": "08e8b942a1dd0784f285e34732afc31e", + "build": [ + 194, + 68, + 14, + 56, + 65, + 1, + 0, + 0 + ], + "date": "2013-09-19T16:09:21", + "maxAlign": 4, + "maxSize": 20, + "version": "1.0.0" + }, + "resourceNames": [ + "eventSelector", + "eventA", + "eventB", + "eventC", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeGroup" + ], + "attributes": { + "description": "Indicator example", + "version": "1.0.0" + }, + "resourceNamesApp": [ + "eventSelector", + "eventA", + "eventB", + "eventC" + ], + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i4": { + "align": 4, + "size": 4 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:v": { + "align": 0, + "size": 0 + }, + "std:u2": { + "align": 2, + "size": 2 + }, + "@emmoco.com.Ex_Indicator/EventSelector": { + "values": [ + "NONE", + "VOID_EVENT", + "UINT8_EVENT", + "INT32_EVENT" + ], + "align": 1, + "pack": 2, + "type": "E:@emmoco.com.Ex_Indicator/EventSelector", + "size": 1 + } + }, + "imports": {"@emmoco.com.Ex_Indicator": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator Example/main.m b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/main.m new file mode 100644 index 0000000..6c60c97 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator Example/main.m @@ -0,0 +1,18 @@ +// +// main.m +// Indicator Example +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +#import "EMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EMAppDelegate class])); + } +} diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Ex_IndicatorTests-Info.plist b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Ex_IndicatorTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Ex_IndicatorTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Indicator_ExampleTests.m b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Indicator_ExampleTests.m new file mode 100644 index 0000000..ff237e3 --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/Indicator_ExampleTests.m @@ -0,0 +1,34 @@ +// +// Indicator_ExampleTests.m +// Indicator ExampleTests +// +// Created by Dexter Weiss on 10/15/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface Indicator_ExampleTests : XCTestCase + +@end + +@implementation Indicator_ExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/Ex_Indicator/Indicator ExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Assets/system.json b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Assets/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Assets/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/ArrayValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/ArrayValue.html new file mode 100644 index 0000000..875bda7 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/ArrayValue.html @@ -0,0 +1,1231 @@ + + + + + ArrayValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html new file mode 100644 index 0000000..67de2aa --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType.html @@ -0,0 +1,1030 @@ + + + + + EMBluetoothLowEnergyConnectionType Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType.h
EMBluetoothLowEnergyConnectionType.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   discoversAllEmmocoBLEDevices +

    By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

    +
    + property + +
  • +
+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

discoversAllEmmocoBLEDevices

+ + + +
+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + +
@property (nonatomic) BOOL discoversAllEmmocoBLEDevices
+ + + + + + + + +
+

Discussion

+

By default, EMBluetoothLowEnergyConnectionType will ‘discover’ devices that have a schema hash matching a schema in your application bundle. +Set this flag to ‘YES’ for an instance of this class to discover all Emmoco BLE devices. +NOTE: Most applications should not have this enabled.

+
+ + + + + + + +
+

Declared In

+ EMBluetoothLowEnergyConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
- (EMResourceValue *)lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

setConnectionDelegate:

+ + + +
+

The delegate for connection communication

+
+ + +
- (void)setConnectionDelegate:(id<EMDeviceDelegate>)connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html new file mode 100644 index 0000000..2f3d888 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v12.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v12 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html new file mode 100644 index 0000000..125b2cd --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMBluetoothLowEnergyConnectionType_v13.html @@ -0,0 +1,866 @@ + + + + + EMBluetoothLowEnergyConnectionType_v13 Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toCBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared inEMBluetoothLowEnergyConnectionType_v13.h
EMBluetoothLowEnergyConnectionType_v13.m
+ + + + +
+ +

Overview

+

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

+ +

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Extension Methods

+ +
    +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(EMResourceValue *)value
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnection.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnection.html new file mode 100644 index 0000000..2edb0eb --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnection.html @@ -0,0 +1,1105 @@ + + + + + EMConnection Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMDeviceDelegate
Declared inEMConnection.h
EMConnection.m
+ + + + +
+ +

Overview

+

The state of the current connection. Use KVO to receive updates on this property and react to changes.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

connectionAttemptTimeout

+ + + +
+

The timeout interval for a pending connection

+
+ + +
@property (atomic) NSTimeInterval connectionAttemptTimeout
+ + + + + + + + +
+

Discussion

+

The timeout interval for a pending connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionClosedBlock

+ + + +
+

This block will be called when an open connection is closed for any reason

+
+ + +
@property (atomic, strong) EMResourceBlock connectionClosedBlock
+ + + + + + + + +
+

Discussion

+

This block will be called when an open connection is closed for any reason

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

device

+ + + +
+

The EMDeviceBasicDescription used for conenction

+
+ + +
@property (nonatomic, strong) EMDeviceBasicDescription *device
+ + + + + + + + +
+

Discussion

+

The EMDeviceBasicDescription used for conenction

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, strong) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

cancelOpen

+ + + +
+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + +
- (void)cancelOpen
+ + + + + + + + +
+

Discussion

+

Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

closeConnectionWithSuccess:onFail:

+ + + +
+

Closes the connection

+
+ + +
- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful disconnect

+
+ +
+
failBlock
+

A block to call on a failed disconnect

+
+ +
+ + + + + + + +
+

Discussion

+

Closes the connection

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:

+ + + +
+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The basic description of a device

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

initWithDevice:schema:

+ + + +
+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + +
- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
device
+

the name of the target device, including one of the pre-defined prefixes

+
+ +
+
resourceSchema
+

the schema describing the resources available in this connection

+
+ +
+ + + + + + + +
+

Discussion

+

Creates a new EMTargetConnection object. +Actual connection and disconnection to the named target occurs through calls to open and close on this object.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns true if connected and false otherwise.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns true if connected and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

openConnectionWithSuccess:onFail:

+ + + +
+

Opens a connection to the @device device property

+
+ + +
- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

A block to call on a successful connect

+
+ +
+
failBlock
+

A block to call on a failed connect

+
+ +
+ + + + + + + +
+

Discussion

+

Opens a connection to the @device device property

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

readValueNamed:onSuccess:onFail:

+ + + +
+

Reads a value

+
+ + +
- (void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read

+
+ +
+
successBlock
+

A block to call on a successful read

+
+ +
+
failBlock
+

A block to call on a failed read

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a value

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ +

writeResource:onSuccess:onFail:

+ + + +
+

Writes a resource to the device

+
+ + +
- (void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The resource value

+
+ +
+
successBlock
+

A block to call on a successful write

+
+ +
+
failBlock
+

A block to call on a failed write

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a resource to the device

+
+ + + + + + + +
+

Declared In

+ EMConnection.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html new file mode 100644 index 0000000..9351c68 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionListManager.html @@ -0,0 +1,1200 @@ + + + + + EMConnectionListManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionTypeScannerDelegate
Declared inEMConnectionListManager.h
EMConnectionListManager.m
+ + + + +
+ +

Overview

+

EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction.

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ +
    +
  • + +   devices +

    @property devices +A list of devices that has been discovered as available by the connection list manager

    +
    + property + +
  • + +   filterPredicate +

    @property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

    +
    + property + +
  • + +   updating +

    @property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

    +
    + property + +
  • + +   updateRate +

    @property updateRate +updateRate determines the scan frequency for discovering devices

    +
    + property + +
  • + +   automaticallyConnectsToLastDevice +

    @param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

    +
    + property + +
  • + + + sharedManager +

    Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

    +
    + + +
  • + + – deviceBasicDescriptionForDeviceNamed: +

    Retrieve a device description for a given unique identifier

    +
    + + +
  • + + – startUpdating +

    Tells the connection list manager to begin actively looking for devices to interact with.

    +
    + + +
  • + + – stopUpdating +

    Tells the connection list manager to stop looking for devices to interact with.

    +
    + + +
  • + + – reset +

    Manually clears out all devices on the connection list manager.

    +
    + + +
  • + + – isBluetoothAvailable +

    Detect if Bluetooth is available

    +
    + + +
  • + + – addConnectionTypeToUpdates: +

    Add your own connection type outside of bluetooth low energy

    +
    + + +
  • + + – removeConnectionToFromUpdates: +

    Remove your own connection type outside of bluetooth low energy

    +
    + + +
  • +
+ + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

automaticallyConnectsToLastDevice

+ + + +
+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + +
@property (nonatomic) BOOL automaticallyConnectsToLastDevice
+ + + + + + + + +
+

Discussion

+

@param automaticallyConnectsToLastDevice +A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

devices

+ + + +
+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + +
@property (nonatomic, strong, readonly) NSArray *devices
+ + + + + + + + +
+

Discussion

+

@property devices +A list of devices that has been discovered as available by the connection list manager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

filterPredicate

+ + + +
+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + +
@property (nonatomic, strong) NSPredicate *filterPredicate
+ + + + + + + + +
+

Discussion

+

@property filterPredicate +A filter that allows only devices conforming to the predicate to be visible

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updateRate

+ + + +
+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + +
@property (nonatomic) NSTimeInterval updateRate
+ + + + + + + + +
+

Discussion

+

@property updateRate +updateRate determines the scan frequency for discovering devices

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

updating

+ + + +
+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + +
@property (nonatomic, getter=isUpdating, readonly) BOOL updating
+ + + + + + + + +
+

Discussion

+

@property updating +A boolean value indicating whether or not the connection list manager is actively updating the devices list

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + +
+ (EMConnectionListManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addConnectionTypeToUpdates:

+ + + +
+

Add your own connection type outside of bluetooth low energy

+
+ + +
- (void)addConnectionTypeToUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Add your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceBasicDescriptionForDeviceNamed:

+ + + +
+

Retrieve a device description for a given unique identifier

+
+ + +
- (EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name
+ + +
+

Parameters

+ +
+
name
+

The name of the device

+
+ +
+ + + + + + + +
+

Discussion

+

Retrieve a device description for a given unique identifier

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id<EMConnectionType>)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isBluetoothAvailable

+ + + +
+

Detect if Bluetooth is available

+
+ + +
- (BOOL)isBluetoothAvailable
+ + + + + + + + +
+

Discussion

+

Detect if Bluetooth is available

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

removeConnectionToFromUpdates:

+ + + +
+

Remove your own connection type outside of bluetooth low energy

+
+ + +
- (void)removeConnectionToFromUpdates:(id<EMConnectionType>)connectionType
+ + + + + + + + +
+

Discussion

+

Remove your own connection type outside of bluetooth low energy

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

reset

+ + + +
+

Manually clears out all devices on the connection list manager.

+
+ + +
- (void)reset
+ + + + + + + + +
+

Discussion

+

Manually clears out all devices on the connection list manager.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to begin actively looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection list manager to stop looking for devices to interact with.

+
+ + + + + + + +
+

Declared In

+ EMConnectionListManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html new file mode 100644 index 0000000..7d585ad --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMConnectionManager.html @@ -0,0 +1,1333 @@ + + + + + EMConnectionManager Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMConnectionDelegate
Declared inEMConnectionManager.h
EMConnectionManager.m
+ + + + +
+ +

Overview

+

EMConnectionManager is a singleton class for managing a connection with a physical or mock device.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + +
+ +

Properties

+ +
+ +

backgroundUpdatesEnabled

+ + + +
+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + +
@property (nonatomic) BOOL backgroundUpdatesEnabled
+ + + + + + + + +
+

Discussion

+

@property backgroundUpdatesEnabled +@description If you set this flag to “YES”, the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

sharedManager

+ + + +
+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + +
+ (EMConnectionManager *)sharedManager
+ + + + + + + + +
+

Discussion

+

Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. +Note: Accessing the connection manager in any way other is not recommended.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

addSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + +
- (void)addSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path for the directory in which to search

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager where it should look for schemas other than the NSBundle’s mainBundle

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connectino fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectDevice:timeoutInterval:onSuccess:onFail:

+ + + +
+

Tells the connection manager to connect to a specific device.

+
+ + +
- (void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
device
+

An instance of EMDeviceBasicDescription the connection manager should connect to

+
+ +
+
timeout
+

The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called.

+
+ +
+
successBlock
+

The block to run after a successful connection

+
+ +
+
failBlock
+

The block to run if the connection fails +@description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to connect to a specific device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

connectedDevice

+ + + +
+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + +
- (EMDeviceBasicDescription *)connectedDevice
+ + + + + + + + +
+

Discussion

+

Returns an array of EMDeviceBasicDescription’s for the device that is actively connected

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

disconnectWithSuccess:onFail:

+ + + +
+

Tells the connection manager to disconnect from a specific device

+
+ + +
- (void)disconnectWithSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
successBlock
+

The block to run after a successful disconnection

+
+ +
+
failBlock
+

The block to run if the disconnection fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to disconnect from a specific device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

embeddedSystemProtocolLevel

+ + + +
+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + +
- (NSNumber *)embeddedSystemProtocolLevel
+ + + + + + + + +
+

Discussion

+

Gets the embedded system protocol level from the schema used to connect to the device +@description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

forceConnectionWithDefaultSchema:

+ + + +
+

Forces the connection manager to connect to a device with the default schema

+
+ + +
- (void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device
+ + +
+

Parameters

+ +
+
device
+

The device for the forced connection +@description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn’t an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly.

+
+ +
+ + + + + + + +
+

Discussion

+

Forces the connection manager to connect to a device with the default schema

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

readResource:onSuccess:onFail:

+ + + +
+

Reads a resource from a connected device

+
+ + +
- (void)readResource:(NSString *)resourceName onSuccess:(void ( ^ ) ( id readValue ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceName
+

The name of the resource to read. This is the name of the resource in the device’s schema.

+
+ +
+
successBlock
+

The block to call when a read occurs successfully. Connection manager will call this block with the value read.

+
+ +
+
failBlock
+

The block to call when a read fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Reads a resource from a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

removeSchemaSearchForFilesInDirectory:

+ + + +
+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + +
- (void)removeSchemaSearchForFilesInDirectory:(NSString *)path
+ + +
+

Parameters

+ +
+
path
+

The path to no longer search +@description Note: This method will never ignore the current bundle’s mainBundle

+
+ +
+ + + + + + + +
+

Discussion

+

Tells the connection manager to no longer look in the specified path for schemas

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaFileNameForHashString:

+ + + +
+

Gives the schema name in the application bundle for a given hash string

+
+ + +
- (NSString *)schemaFileNameForHashString:(NSString *)hashString
+ + +
+

Parameters

+ +
+
hashString
+

A full or partial schema hash string +@description This method takes either a full hash or partial hash. If any schema begins with ‘hash string’, the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. +If one or more schemas share ‘hashString’ at the beginning of their hash, the first path will be returned.

+
+ +
+ + + + + + + +
+

Discussion

+

Gives the schema name in the application bundle for a given hash string

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaForConnectedDevice

+ + + +
+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + +
- (EMSchema *)schemaForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Gets the schema for the connected device. +@description Returns nil if no device is connected.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

schemaHashForConnectedDevice

+ + + +
+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + +
- (NSString *)schemaHashForConnectedDevice
+ + + + + + + + +
+

Discussion

+

Returns a version of the the schema hash from a connected device’s firmware as it appears on em-hub

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

updateInternalSchemaCache

+ + + +
+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + +
- (void)updateInternalSchemaCache
+ + + + + + + + +
+

Discussion

+

Tells EMConnectionManager to update its internal cache of schemas used for connection. +@description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly.

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ +

writeValue:toResource:onSuccess:onFail:

+ + + +
+

Writes a value to a resource on a connected device

+
+ + +
- (void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void ( ^ ) ( void ))successBlock onFail:(void ( ^ ) ( NSError *error ))failBlock
+ + +
+

Parameters

+ +
+
resourceValue
+

The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary

+
+ +
+
resource
+

The name of the resource for writing. This is the name of the resource in the schema.

+
+ +
+
successBlock
+

The block to call when the write occurs successfully.

+
+ +
+
failBlock
+

The block to call when the write fails.

+
+ +
+ + + + + + + +
+

Discussion

+

Writes a value to a resource on a connected device

+
+ + + + + + + +
+

Declared In

+ EMConnectionManager.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html new file mode 100644 index 0000000..ae519b0 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMDeviceBasicDescription.html @@ -0,0 +1,753 @@ + + + + + EMDeviceBasicDescription Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMDeviceBasicDescription.h
EMDeviceBasicDescription.m
+ + + + +
+ +

Overview

+

EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. +All devices, regardless of connection type, will have these properties.

+ +

All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   name +

    The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

    +
    + property + +
  • + +   connectionType +

    A concrete EMConnectionType instance that will be used to send messages to the device.

    +
    + property + +
  • + +   signalStrength +

    A value between -100 and 0 used to describe signal strength.

    +
    + property + +
  • + +   signalStrengthFilter +

    The signal strength filter for smoothing

    +
    + property + +
  • + +   advertiseData +

    Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

    +
    + property + +
  • + +   advertiseObject +

    An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

    +
    + property + +
  • + +   shortSchemaHash +

    The first six characters of the device’s schema

    +
    + property + +
  • + +   schemaFilePath +

    The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

    +
    + property + +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

advertiseData

+ + + +
+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + +
@property (nonatomic, strong) NSData *advertiseData
+ + + + + + + + +
+

Discussion

+

Data that was discovered along with the device. +Ex: When dealing with bluetooth, this is the advertising packet data

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

advertiseObject

+ + + +
+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + +
@property (nonatomic, strong) id advertiseObject
+ + + + + + + + +
+

Discussion

+

An object taken from the advertise data based on the advertise resource in the device’s schema +Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

connectionType

+ + + +
+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + +
@property (nonatomic, strong) id<EMConnectionType> connectionType
+ + + + + + + + +
+

Discussion

+

A concrete EMConnectionType instance that will be used to send messages to the device.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

name

+ + + +
+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + +
@property (nonatomic, strong) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the device used thoughout the framework. +Like the unique_identifier, this property needs to be unique.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

schemaFilePath

+ + + +
+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + +
@property (nonatomic, strong) NSString *schemaFilePath
+ + + + + + + + +
+

Discussion

+

The name of the schema file in your bundle that relates to this device. +NOTE: Many devices do not broadcast this information. In this case, this property will not be set

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

shortSchemaHash

+ + + +
+

The first six characters of the device’s schema

+
+ + +
@property (nonatomic, strong) NSString *shortSchemaHash
+ + + + + + + + +
+

Discussion

+

The first six characters of the device’s schema

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrength

+ + + +
+

A value between -100 and 0 used to describe signal strength.

+
+ + +
@property (nonatomic) float signalStrength
+ + + + + + + + +
+

Discussion

+

A value between -100 and 0 used to describe signal strength.

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ +

signalStrengthFilter

+ + + +
+

The signal strength filter for smoothing

+
+ + +
@property (nonatomic, strong) id<EMSignalStrengthFilter> signalStrengthFilter
+ + + + + + + + +
+

Discussion

+

The signal strength filter for smoothing

+
+ + + + + + + +
+

Declared In

+ EMDeviceBasicDescription.h
+
+ + +
+ +
+ + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html new file mode 100644 index 0000000..48bf736 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMResourceValue.html @@ -0,0 +1,1963 @@ + + + + + EMResourceValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromNSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.h
EMResourceValue.m
+ + + + +
+ +

Overview

+

A container for different types of resource values. +Instances of this class are used to hold values for resources whose types is +either Void, Int, Enum, Num, String, Struct, Array, or File.

+ +

See also:

+ + + + +

Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + +

Other Methods

+ + + + + +

Other Methods

+ + + +
+ + + + + +
+ +

Properties

+ +
+ +

name

+ + + +
+

The name of the resource.

+
+ + +
@property (readonly) NSString *name
+ + + + + + + + +
+

Discussion

+

The name of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

resourceSchema

+ + + +
+

The resource schema associated with the resource.

+
+ + +
@property (readonly) EMSchema *resourceSchema
+ + + + + + + + +
+

Discussion

+

The resource schema associated with the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

type

+ + + +
+

The type of the resource.

+
+ + +
@property (readonly) NSString *type
+ + + + + + + + +
+

Discussion

+

The type of the resource.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Class Methods

+ +
+ +

resourceWithName:ofType:fromSchema:

+ + + +
+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + +
+ (EMResourceValue *)resourceWithName:(NSString *)name ofType:(NSString *)type fromSchema:(EMSchema *)resourceSchema
+ + +
+

Parameters

+ +
+
name
+

the name given to the newly-created value

+
+ +
+
type
+

the type of the newly-created value

+
+ +
+
resourceSchema
+

an EMSchema instance

+
+ +
+ + + +
+

Return Value

+

a new EMResourceValue instance

+
+ + + + + +
+

Discussion

+

Create a EMResourceValue. This method is used internally by the framework.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMSchema.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMSchema.html new file mode 100644 index 0000000..f6f0914 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMSchema.html @@ -0,0 +1,2251 @@ + + + + + EMSchema Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMSchema.h
EMSchema.m
+ + + + +
+ +

Overview

+

A set of meta-data describing a set of resources. +Written by Bob Frankel and Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + +
+ +

Class Methods

+ +
+ +

schemaFromFile:

+ + + +
+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + +
+ (EMSchema *)schemaFromFile:(NSString *)fileName
+ + +
+

Parameters

+ +
+
fileName
+

a file containing JSON content

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceSchema instance

+
+ + + + + +
+

Discussion

+

Creates a EMResourceSchema instance from the contents of a file.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + + +
+ +

Instance Methods

+ +
+ +

UUID

+ + + +
+

Returns the UUID associated with this schema.

+
+ + +
- (NSString *)UUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

accessForResource:

+ + + +
+

Get the read/write/indicator access capabilities of a named resource

+
+ + +
- (EMResourceAccessType)accessForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a valid resource name in this schema

+
+ +
+ + + +
+

Return Value

+

an NSString containing the characters ‘r’, ‘w’, and ‘i’ as appropriate

+
+ + + + + +
+

Discussion

+

Get the read/write/indicator access capabilities of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

alignmentForStandardType:

+ + + +
+

Get the alignment of a standard scalar type

+
+ + +
- (int)alignmentForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the alignment of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

applicationResources

+ + + +
+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + +
- (NSArray *)applicationResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all application resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

broadcastResourceName

+ + + +
+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + +
- (NSString *)broadcastResourceName
+ + + + + + + + +
+

Discussion

+

Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

buildDate

+ + + +
+

Returns the build number associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)buildDate
+ + + + + + + + +
+

Discussion

+

Returns the build number associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

byteAlignmentForResource:

+ + + +
+

Get the alignment of a named resource

+
+ + +
- (int)byteAlignmentForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the alignment in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the alignment of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

enumValuesForType:

+ + + +
+

Get the values associated with an enum type.

+
+ + +
- (NSDictionary *)enumValuesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid enum type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing enum value names and their corresponding ordinal

+
+ + + + + +
+

Discussion

+

Get the values associated with an enum type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the enum type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldNamesForType:

+ + + +
+

Get the names of the fields associated with a struct type.

+
+ + +
- (NSArray *)fieldNamesForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSArray containing field names

+
+ + + + + +
+

Discussion

+

Get the names of the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

fieldsForType:

+ + + +
+

Get the fields associated with a struct type.

+
+ + +
- (NSDictionary *)fieldsForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid struct type name in this schema

+
+ +
+ + + +
+

Return Value

+

a NSDictionary containing field names and their corresponding type code

+
+ + + + + +
+

Discussion

+

Get the fields associated with a struct type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the struct type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

idForResource:

+ + + +
+

Get the unique id associated with a named resource

+
+ + +
- (int)idForResource:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the corresponding resource id

+
+ + + + + +
+

Discussion

+

Get the unique id associated with a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

maxResourceSize

+ + + +
+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + +
- (int)maxResourceSize
+ + + + + + + + +
+

Discussion

+

Returns the maximum size in bytes amongst all resource types in this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

name

+ + + +
+

Returns the fully-qualified name of this schema.

+
+ + +
- (NSString *)name
+ + + + + + + + +
+

Discussion

+

Returns the fully-qualified name of this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

nameForResourceWithID:

+ + + +
+

Get the resource name associated with this resource id

+
+ + +
- (NSString *)nameForResourceWithID:(NSInteger)resourceId
+ + +
+

Parameters

+ +
+
resourceId
+

a resource id

+
+ +
+ + + +
+

Return Value

+

the corresponding resource name

+
+ + + + + +
+

Discussion

+

Get the resource name associated with this resource id

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource id is invalid

+
+ +
+ + + +
+

See Also

+ +
+ + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

newResourceValueForResourceNamed:

+ + + +
+

Create a new ResourceValue instance for a named resource.

+
+ + +
- (EMResourceValue *)newResourceValueForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

a newly created EMResourceValue to a value for this resource

+
+ + + + + +
+

Discussion

+

Create a new ResourceValue instance for a named resource.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numberParametersForType:

+ + + +
+

Get the parameters associated with a number type.

+
+ + +
- (NSArray *)numberParametersForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

a four-element NSArray holding the min, max, step, and prec parameters of this type

+
+ + + + + +
+

Discussion

+

Get the parameters associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericRepresentationForType:

+ + + +
+

Get the representation type associated with a number type.

+
+ + +
- (NSString *)numericRepresentationForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid number type name in this schema

+
+ +
+ + + +
+

Return Value

+

an integral representation type

+
+ + + + + +
+

Discussion

+

Get the representation type associated with a number type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the number type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

numericalUUID

+ + + +
+

Returns the UUID associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)numericalUUID
+ + + + + + + + +
+

Discussion

+

Returns the UUID associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

owner

+ + + +
+

Returns the owner of the schema definition this schema was created from.

+
+ + +
- (NSString *)owner
+ + + + + + + + +
+

Discussion

+

Returns the owner of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

protocolLevel

+ + + +
+

Returns the protocol level of this schema

+
+ + +
- (int)protocolLevel
+ + + + + + + + +
+

Discussion

+

Returns the protocol level of this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

resources

+ + + +
+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + +
- (NSDictionary *)resources
+ + + + + + + + +
+

Discussion

+

Returns an NSDictionary containing all resource names in this schema and their corresponding type code.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaDescription

+ + + +
+

Returns the description associated with this schema.

+
+ + +
- (NSString *)schemaDescription
+ + + + + + + + +
+

Discussion

+

Returns the description associated with this schema.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

schemaHash

+ + + +
+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + +
- (NSArray *)schemaHash
+ + + + + + + + +
+

Discussion

+

Returns the schema hash associated with this schema as an array of numbers.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForResourceNamed:

+ + + +
+

Get the size of a named resource

+
+ + +
- (int)sizeForResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

a named resource in this schema

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this resource

+
+ + + + + +
+

Discussion

+

Get the size of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

sizeForStandardType:

+ + + +
+

Get the size of a standard scalar type

+
+ + +
- (int)sizeForStandardType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a scalar type code

+
+ +
+ + + +
+

Return Value

+

the size in bytes of this standard type

+
+ + + + + +
+

Discussion

+

Get the size of a standard scalar type

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the type code is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

stringLengthForType:

+ + + +
+

Get the length of this string type.

+
+ + +
- (int)stringLengthForType:(NSString *)type
+ + +
+

Parameters

+ +
+
type
+

a valid string type name in this schema

+
+ +
+ + + +
+

Return Value

+

the length of this string type

+
+ + + + + +
+

Discussion

+

Get the length of this string type.

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the string type name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

systemResources

+ + + +
+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + +
- (NSArray *)systemResources
+ + + + + + + + +
+

Discussion

+

Returns a sorted NSArray containing all system resource names in this schema

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

typeOfResourceNamed:

+ + + +
+

Get the type of a named resource

+
+ + +
- (NSString *)typeOfResourceNamed:(NSString *)resourceName
+ + +
+

Parameters

+ +
+
resourceName
+

the name of a resource in this schema

+
+ +
+ + + +
+

Return Value

+

the type code associated with this resource

+
+ + + + + +
+

Discussion

+

Get the type of a named resource

+
+ + + +
+

Exceptions

+ +
+
UsageError
+

the resource name is invalid

+
+ +
+ + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ +

version

+ + + +
+

Returns the version of the schema definition this schema was created from.

+
+ + +
- (NSString *)version
+ + + + + + + + +
+

Discussion

+

Returns the version of the schema definition this schema was created from.

+
+ + + + + + + +
+

Declared In

+ EMSchema.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMUIKit.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMUIKit.html new file mode 100644 index 0000000..cf63910 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EMUIKit.html @@ -0,0 +1,299 @@ + + + + + EMUIKit Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Inherits fromNSObject
Declared inEMUIKit.h
+ + + + + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EnumValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EnumValue.html new file mode 100644 index 0000000..d89f813 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/EnumValue.html @@ -0,0 +1,1231 @@ + + + + + EnumValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/FileValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/FileValue.html new file mode 100644 index 0000000..9867a75 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/FileValue.html @@ -0,0 +1,1231 @@ + + + + + FileValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)filePath
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/IntValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/IntValue.html new file mode 100644 index 0000000..f14140b --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/IntValue.html @@ -0,0 +1,1231 @@ + + + + + IntValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/NumberValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/NumberValue.html new file mode 100644 index 0000000..d0bdc5a --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/NumberValue.html @@ -0,0 +1,1231 @@ + + + + + NumberValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)dataSize fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StringValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StringValue.html new file mode 100644 index 0000000..3325a2b --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StringValue.html @@ -0,0 +1,1231 @@ + + + + + StringValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)newValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StructValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StructValue.html new file mode 100644 index 0000000..c1f0feb --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/StructValue.html @@ -0,0 +1,1231 @@ + + + + + StructValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/VoidValue.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/VoidValue.html new file mode 100644 index 0000000..6abbc7c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Classes/VoidValue.html @@ -0,0 +1,1231 @@ + + + + + VoidValue Class Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + + + + +
Inherits fromEMResourceValue : NSObject
Conforms toEMResourceValueProtocol
Declared inEMResourceValue.m
+ + + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html new file mode 100644 index 0000000..717e7ce --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionDelegate.html @@ -0,0 +1,305 @@ + + + + + EMConnectionDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnection.h
+ + + + +
+ +

Overview

+

@file

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html new file mode 100644 index 0000000..86b4b8d --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionType.html @@ -0,0 +1,1151 @@ + + + + + EMConnectionType Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

Abstracts a given protocol for connecting to devices.

+
+ + + + + +
+ +

Tasks

+ + + + + +
    +
  • + +   scanDelegate +

    The delegate for scanning

    +
    + property + required method +
  • + +   connectionDelegate +

    The delegate for connection communication

    +
    + property + required method +
  • + +   schema +

    The schema for connection

    +
    + property + required method +
  • + +   lastReadValue +

    The last read resource value from the device

    +
    + property + required method +
  • + +   connected +

    A boolean indicating whether or not there is a connection with a device.

    +
    + property + required method +
  • + +   signalStrengthFilterClass +

    The class to use for filtering, or smoothin, signal strength values

    +
    + property + required method +
  • + + – deviceType +

    The type of device - this can be set to anything and retreived for printing or examining.

    +
    + + required method +
  • + + – startUpdating +

    Tells the connection to start looking for devices of its type.

    +
    + + required method +
  • + + – stopUpdating +

    Tells the connection to stop looking for devices of its type.

    +
    + + required method +
  • + + – isConnected +

    Returns whether or not there is a connection with a device.

    +
    + + required method +
  • + + – disconnect +

    disconnects the current device.

    +
    + + required method +
  • + + – connectToDevice:connectionDelegate: +

    Establishes a connection with a device

    +
    + + required method +
  • + + – isAvailable +

    YES if available on the current device, NO if unavailable.

    +
    + + required method +
  • + + – fetch: +

    Fetches a resource. Can be retrieved in “lastReadValue”

    +
    + + required method +
  • + + – fetchSystemResource: +

    Fetches a system resource. Can be retrieved in “lastReadValue”.

    +
    + + required method +
  • + + – store: +

    writes a value to a device.

    +
    + + required method +
  • +
+ +
+ + + + + +
+ +

Properties

+ +
+ +

connected

+ + + +
+

A boolean indicating whether or not there is a connection with a device.

+
+ + +
@property (nonatomic, readonly, getter=isConnected) BOOL connected
+ + + + + + + + +
+

Discussion

+

A boolean indicating whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

connectionDelegate

+ + + +
+

The delegate for connection communication

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMDeviceDelegate> connectionDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for connection communication

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

lastReadValue

+ + + +
+

The last read resource value from the device

+
+ + +
@property (nonatomic, strong) EMResourceValue *lastReadValue
+ + + + + + + + +
+

Discussion

+

The last read resource value from the device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

scanDelegate

+ + + +
+

The delegate for scanning

+
+ + +
@property (nonatomic, unsafe_unretained) id<EMConnectionTypeScannerDelegate> scanDelegate
+ + + + + + + + +
+

Discussion

+

The delegate for scanning

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

schema

+ + + +
+

The schema for connection

+
+ + +
@property (nonatomic, unsafe_unretained) EMSchema *schema
+ + + + + + + + +
+

Discussion

+

The schema for connection

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

signalStrengthFilterClass

+ + + +
+

The class to use for filtering, or smoothin, signal strength values

+
+ + +
@property (nonatomic, strong) Class<EMSignalStrengthFilter> signalStrengthFilterClass
+ + + + + + + + +
+

Discussion

+

The class to use for filtering, or smoothin, signal strength values

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + + + + +
+ +

Instance Methods

+ +
+ +

connectToDevice:connectionDelegate:

+ + + +
+

Establishes a connection with a device

+
+ + +
- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate
+ + + + + + + + +
+

Discussion

+

Establishes a connection with a device

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceType

+ + + +
+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + +
- (NSString *)deviceType
+ + + + + + + + +
+

Discussion

+

The type of device - this can be set to anything and retreived for printing or examining.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

disconnect

+ + + +
+

disconnects the current device.

+
+ + +
- (void)disconnect
+ + + + + + + + +
+

Discussion

+

disconnects the current device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetch:

+ + + +
+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + +
- (void)fetch:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a resource. Can be retrieved in “lastReadValue”

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

fetchSystemResource:

+ + + +
+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + +
- (void)fetchSystemResource:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

Fetches a system resource. Can be retrieved in “lastReadValue”.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isAvailable

+ + + +
+

YES if available on the current device, NO if unavailable.

+
+ + +
- (BOOL)isAvailable
+ + + + + + + + +
+

Discussion

+

YES if available on the current device, NO if unavailable.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

isConnected

+ + + +
+

Returns whether or not there is a connection with a device.

+
+ + +
- (BOOL)isConnected
+ + + + + + + + +
+

Discussion

+

Returns whether or not there is a connection with a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

startUpdating

+ + + +
+

Tells the connection to start looking for devices of its type.

+
+ + +
- (void)startUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to start looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

stopUpdating

+ + + +
+

Tells the connection to stop looking for devices of its type.

+
+ + +
- (void)stopUpdating
+ + + + + + + + +
+

Discussion

+

Tells the connection to stop looking for devices of its type.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

store:

+ + + +
+

writes a value to a device.

+
+ + +
- (void)store:(id)resourceValue
+ + + + + + + + +
+

Discussion

+

writes a value to a device.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html new file mode 100644 index 0000000..85abb49 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMConnectionTypeScannerDelegate.html @@ -0,0 +1,488 @@ + + + + + EMConnectionTypeScannerDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

These methods are sen tto the connection delegate to inform it of devices that come available or go offline.

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

deviceScanner:didFindDevice:

+ + + +
+

Tells the delegate a device was found.

+
+ + +
- (void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was found.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didLoseDevice:

+ + + +
+

Tells the delegate a device was lost.

+
+ + +
- (void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Tells the delegate a device was lost.

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ +

deviceScanner:didUpdateDevice:

+ + + +
+

Updates the data for a device description

+
+ + +
- (void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device
+ + + + + + + + +
+

Discussion

+

Updates the data for a device description

+
+ + + + + + + +
+

Declared In

+ EMConnectionType.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html new file mode 100644 index 0000000..95bc4bc --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMDeviceDelegate.html @@ -0,0 +1,305 @@ + + + + + EMDeviceDelegate Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + + + + +
Conforms toNSObject
Declared inEMConnectionType.h
+ + + + +
+ +

Overview

+

EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager.

+
+ + + + + + + + + + + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html new file mode 100644 index 0000000..b4ce878 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/Protocols/EMResourceValueProtocol.html @@ -0,0 +1,1689 @@ + + + + + EMResourceValueProtocol Protocol Reference + + + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+ +
+
+ + + +
+ +
+ + + + +
Declared inEMResourceValue.h
+ + + + +
+ +

Overview

+

A protocol to define the methods that all EMResourceValue subclasses must define.

+ +

Written by Carolyn Vaughan

+
+ + + + + +
+ +

Tasks

+ + + + + + + +
+ + + + + + + + + +
+ +

Instance Methods

+ +
+ +

copyFromResource:

+ + + + +
- (void)copyFromResource:(EMResourceValue *)source
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

doubleValue

+ + + + +
- (double)doubleValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

enumValues

+ + + + +
- (NSArray *)enumValues
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fieldNames

+ + + + +
- (NSArray *)fieldNames
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileEof

+ + + + +
- (BOOL)fileEof
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileFetch

+ + + + +
- (void)fileFetch
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

fileStore

+ + + + +
- (void)fileStore
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

getDataOfSize:fromBuffer:

+ + + + +
- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

index:

+ + + + +
- (EMResourceValue *)index:(int)index
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

initWithName:type:schema:

+ + + + +
- (id)initWithName:(NSString *)theName type:(NSString *)theType schema:(EMSchema *)theResourceSchema
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isArray

+ + + +
+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + +
- (BOOL)isArray
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Array, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isEnum

+ + + +
+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + +
- (BOOL)isEnum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Enum, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isFile

+ + + +
+

Returns true if the type of this value is a File, and false otherwise.

+
+ + +
- (BOOL)isFile
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a File, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isInt

+ + + +
+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + +
- (BOOL)isInt
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is an Int, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isNum

+ + + +
+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + +
- (BOOL)isNum
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a Num, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isScalar

+ + + +
+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + +
- (BOOL)isScalar
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isString

+ + + +
+

Returns true if the type of this value is a String, and false otherwise.

+
+ + +
- (BOOL)isString
+ + + + + + + + +
+

Discussion

+

Returns true if the type of this value is a String, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isStruct

+ + + +
+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + +
- (BOOL)isStruct
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Struct, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

isVoid

+ + + +
+

Return true if the type of this value is a Void, and false otherwise.

+
+ + +
- (BOOL)isVoid
+ + + + + + + + +
+

Discussion

+

Return true if the type of this value is a Void, and false otherwise.

+
+ + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

length

+ + + + +
- (long)length
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

longValue

+ + + + +
- (long long)longValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

max

+ + + + +
- (double)max
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

min

+ + + + +
- (double)min
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

putData:

+ + + + +
- (void)putData:(EMSerialPacket *)buffer
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

reset

+ + + + +
- (void)reset
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

select:

+ + + + +
- (EMResourceValue *)select:(NSString *)fieldName
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setDoubleValue:

+ + + + +
- (void)setDoubleValue:(double)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setLongValue:

+ + + + +
- (void)setLongValue:(long long)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

setStringValue:

+ + + + +
- (void)setStringValue:(NSString *)value
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

step

+ + + + +
- (double)step
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ +

stringValue

+ + + + +
- (NSString *)stringValue
+ + + + + + + + + + + + + + +
+

Declared In

+ EMResourceValue.h
+
+ + +
+ +
+ + +
+ + +
+
+ + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/styles.css b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/styles.css new file mode 100755 index 0000000..7de7ea2 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/styles.css @@ -0,0 +1,585 @@ + + +body { + font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; + font-size: 13px; + background: #fff url(http://www.emmoco.com/images/bg_page_gradient.jpg) repeat-x 0 0; +} + +#em-wrapper { + width:960px; + margin:0 auto; + background-color: #fff; + overflow: hidden; +} + +article +{ + background-color:#fff; +} + + +code { + font-family: Courier, Consolas, monospace; + font-size: 13px; + color: #666; +} + +pre { + font-family: Courier, Consolas, monospace; + font-size: 13px; + line-height: 18px; + tab-interval: 0.5em; + border: 1px solid #C7CFD5; + background-color: #F1F5F9; + color: #666; + padding: 0.3em 1em; +} + +ul { + list-style-type: square; +} + +li { + margin-bottom: 10px; +} + +a { + text-decoration: none; + color: #36C; +} + +a:hover { + text-decoration: underline; + color: #36C; +} + +h2 { + border-bottom: 1px solid #8391A8; + color: #3C4C6C; + font-size: 187%; + font-weight: normal; + margin-top: 1.75em; + padding-bottom: 2px; +} + +/* @group Common page elements */ + +#top_header { + height: 91px; + left: 0; + min-width: 598px; + + right: 0; + top: 50px; + z-index: 900; + width: 960px; + margin: auto; + clear: both; + margin-bottom: 15px; +} + +#footer { + clear: both; + padding-top: 20px; + text-align: center; +} + +#ccontents, #overview_contents { + border-top: 1px solid #2B334F; + position: absolute; + position:relative; + top: 91px; + left: 0; + right: 0; + bottom: 0; + top: 0; + overflow-x: hidden; + overflow-y: auto; + padding-left: 2em; + padding-right: 2em; + padding-top: 1em; + min-width: 550px; + width: 950px; + margin-left: auto; + margin-right: auto; + left: auto; + clear: both; + padding-left: 10px; + padding-right: 0; +} + +#contents.isShowingTOC { + left: 230px; + left: 130px; + min-width: 320px; + width: 730px; + margin-left: auto; + margin-right: auto; + position:absolute; + position:relative; +} + +.copyright { + font-size: 12px; +} + +.generator { + font-size: 11px; +} + +.main-navigation ul li { + display: inline; + margin-left: 15px; + list-style: none; +} + +.main-navigation { + margin-right: 20px; +} + +.navigation-top { + clear: both; + float: right; + margin-right: 20px; +} + +.navigation-bottom { + clear: both; + float: right; + margin-top: 20px; + margin-bottom: -10px; + margin-right: 20px; +} + +.open > .disclosure { + background-image: url("../img/disclosure_open.png"); +} + +.disclosure { + background: url("../img/disclosure.png") no-repeat scroll 0 0; +} + +.disclosure, .nodisclosure { + display: inline-block; + height: 8px; + margin-right: 5px; + position: relative; + width: 9px; +} + +/* @end */ + +/* @group Header */ + +#top_header #library { + background: url("../img/library_background.png") repeat-x 0 0 #485E78; + background-color: #ccc; + height: 35px; + font-size: 115%; + position:relative; +} + +#top_header #library #libraryTitle { + color: #FFFFFF; + margin-left: 15px; + text-shadow: 0 -1px 0 #485E78; + top: 8px; + position: absolute; +} + +#top_header #library #developerHome { + color: #92979E; + right: 15px; + top: 8px; + position: absolute; +} + +#top_header #library a:hover { + text-decoration: none; +} + +#top_header #title { + background: url("../img/title_background.png") repeat-x 0 0 #8A98A9; + border-bottom: 1px solid #B6B6B6; + height: 25px; + overflow: hidden; + text-align: left; + padding-left: 15px; +} + +#top_header h1 { + font-size: 115%; + font-weight: normal; + margin: 0; + padding: 3px 0 2px; + text-align: center; + text-align: left; + text-shadow: 0 1px 0 #D5D5D5; + white-space: nowrap; +} + +#headerButtons { + background-color: #D8D8D8; + background-image: url("../img/button_bar_background.png"); + border-bottom: 1px solid #EDEDED; + border-top: 1px solid #2B334F; + font-size: 8pt; + height: 28px; + left: 0; + list-style: none outside none; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + position: relative; + right: 0; + top: 61px; + top: 0; +} + +#headerButtons li { + background-repeat: no-repeat; + display: inline; + margin-top: 0; + margin-bottom: 0; + padding: 0; +} + +#toc_button button { + border-color: #ACACAC; + border-style: none solid none none; + border-width: 0 1px 0 0; + height: 28px; + margin: 0; + padding-left: 30px; + text-align: left; + width: 230px; +} + +li#jumpto_button { + left: 230px; + margin-left: 0; + position: absolute; + +} + +li#jumpto_button select { + height: 22px; + margin: 5px 2px 0 10px; + max-width: 300px; +} + +/* @end */ + +/* @group Table of contents */ + +#tocContainer.isShowingTOC { + border-right: 1px solid #ACACAC; + display: block; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} + +#tocContainer { + background-color: #E4EBF7; + border-top: 1px solid #2B334F; + bottom: 0; + display: none; + left: 0; + left: auto; + overflow: hidden; + position: absolute; + top: 91px; + top: 150px; + width: 229px; +} + +#tocContainer > ul#toc { + font-size: 11px; + margin: 0; + padding: 12px 0 18px; + width: 209px; + -moz-user-select: none; + -webkit-user-select: none; + user-select: none; +} + +#tocContainer > ul#toc > li { + margin: 0; + padding: 0 0 7px 30px; + text-indent: -15px; +} + +#tocContainer > ul#toc > li > .sectionName a { + color: #000000; + font-weight: bold; +} + +#tocContainer > ul#toc > li > .sectionName a:hover { + text-decoration: none; +} + +#tocContainer > ul#toc li.children > ul { + display: none; + height: 0; +} + +#tocContainer > ul#toc > li > ul { + margin: 0; + padding: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + margin-bottom: 0; + padding-left: 15px; +} + +#tocContainer > ul#toc > li ul { + list-style: none; + margin-right: 0; + padding-right: 0; +} + +#tocContainer > ul#toc li.children.open > ul { + display: block; + height: auto; + margin-left: -15px; + padding-left: 0; +} + +#tocContainer > ul#toc > li > ul, ul#toc > li > ul > li { + margin-left: 0; + padding-left: 15px; +} + +#tocContainer li ul li { + margin-top: 0.583em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +#tocContainer li ul li span.sectionName { + white-space: normal; +} + +#tocContainer > ul#toc > li > ul > li > .sectionName a { + font-weight: bold; +} + +#tocContainer > ul#toc > li > ul a { + color: #4F4F4F; +} + +/* @end */ + +/* @group Index formatting */ + +.index-title { + font-size: 13px; + font-weight: normal; +} + +.index-column { + float: left; + width: 30%; + min-width: 200px; + font-size: 11px; +} + +.index-column ul { + margin: 8px 0 0 0; + padding: 0; + list-style: none; +} + +.index-column ul li { + margin: 0 0 3px 0; + padding: 0; +} + +.hierarchy-column { + min-width: 400px; +} + +.hierarchy-column ul { + margin: 3px 0 0 15px; +} + +.hierarchy-column ul li { + list-style-type: square; +} + +/* @end */ + +/* @group Common formatting elements */ + +.title { + font-weight: normal; + font-size: 215%; + margin-top:0; +} + +.subtitle { + font-weight: normal; + font-size: 180%; + color: #3C4C6C; + border-bottom: 1px solid #5088C5; +} + +.subsubtitle { + font-weight: normal; + font-size: 145%; + height: 0.7em; +} + +.warning { + border: 1px solid #5088C5; + background-color: #F0F3F7; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.bug { + border: 1px solid #000; + background-color: #ffffcc; + margin-bottom: 0.5em; + padding: 0.3em 0.8em; +} + +.deprecated { + color: #F60425; +} + +/* @end */ + +/* @group Common layout */ + +.section { + margin-top: 3em; +} + +/* @end */ + +/* @group Object specification section */ + +.section-specification { + margin-left: 2.5em; + margin-right: 2.5em; + font-size: 12px; +} + +.section-specification table { + border-top: 1px solid #d6e0e5; +} + +.section-specification td { + vertical-align: top; + border-bottom: 1px solid #d6e0e5; + padding: .6em; +} + +.section-specification .specification-title { + font-weight: bold; +} + +/* @end */ + +/* @group Tasks section */ + +.task-list { + list-style-type: none; + padding-left: 0px; +} + +.task-list li { + margin-bottom: 3px; +} + +.task-item-suffix { + color: #996; + font-size: 12px; + font-style: italic; + margin-left: 0.5em; +} + +span.tooltip span.tooltip { + font-size: 1.0em; + display: none; + padding: 0.3em; + border: 1px solid #aaa; + background-color: #fdfec8; + color: #000; + text-align: left; +} + +span.tooltip:hover span.tooltip { + display: block; + position: absolute; + margin-left: 2em; +} + +/* @end */ + +/* @group Method section */ + +.section-method { + margin-top: 2.3em; +} + +.method-title { + margin-bottom: 1.5em; +} + +.method-subtitle { + margin-top: 0.7em; + margin-bottom: 0.2em; +} + +.method-subsection p { + margin-top: 0.4em; + margin-bottom: 0.8em; +} + +.method-declaration { + margin-top:1.182em; + margin-bottom:.909em; +} + +.method-declaration code { + font:14px Courier, Consolas, monospace; + color:#000; +} + +.declaration { + color: #000; +} + +.argument-def { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + +.argument-def dd { + margin-left: 1.25em; +} + +.see-also-section ul { + list-style-type: none; + padding-left: 0px; + margin-top: 0; +} + +.see-also-section li { + margin-bottom: 3px; +} + +.declared-in-ref { + color: #666; +} + +/* @end */ + diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/stylesPrint.css b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/stylesPrint.css new file mode 100755 index 0000000..dc54cd2 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/css/stylesPrint.css @@ -0,0 +1,22 @@ + +header { + display: none; +} + +div.main-navigation, div.navigation-top { + display: none; +} + +div#overview_contents, div#contents.isShowingTOC, div#contents { + overflow: visible; + position: relative; + top: 0px; + border: none; + left: 0; +} +#tocContainer.isShowingTOC { + display: none; +} +nav { + display: none; +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/hierarchy.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/hierarchy.html new file mode 100644 index 0000000..999e36e --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/hierarchy.html @@ -0,0 +1,216 @@ + + + + + iOS Framework Hierarchy + + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + +
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/button_bar_background.png b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/button_bar_background.png new file mode 100755 index 0000000..d2cd0d8 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/button_bar_background.png diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure.png b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure.png new file mode 100755 index 0000000..147198f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure.png diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure_open.png b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure_open.png new file mode 100755 index 0000000..ea3842b --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/disclosure_open.png diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/library_background.png b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/library_background.png new file mode 100755 index 0000000..8fa6d45 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/library_background.png diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/title_background.png b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/title_background.png new file mode 100755 index 0000000..9001dac --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/img/title_background.png diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/index.html b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/index.html new file mode 100644 index 0000000..60f7122 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Docs/index.html @@ -0,0 +1,209 @@ + + + + + iOS Framework Reference + + + + + +
+ + +
+ + +

+ Em-Hub + Wiki + Android Docs + iOS Docs + Support +

+ +
+ + +
+ + + + + + + + +
+
+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h new file mode 100644 index 0000000..eb427f6 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMBluetoothLowEnergyConnectionType.h @@ -0,0 +1,34 @@ +#import +#import "EMConnectionType.h" + +#if TARGET_OS_IPHONE + #import +#else + #import +#endif + + + +/** + * EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy. + * + * If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method. + */ + +@interface EMBluetoothLowEnergyConnectionType : NSObject { + +} + +@property (nonatomic) NSTimeInterval scanResetTime; + +/** + * By default, EMBluetoothLowEnergyConnectionType will 'discover' devices that have a schema hash matching a schema in your application bundle. + * Set this flag to 'YES' for an instance of this class to discover all Emmoco BLE devices. + * NOTE: Most applications should not have this enabled. + */ +@property (nonatomic) BOOL discoversAllEmmocoBLEDevices; + ++(CBUUID *)emmocoServiceUUID; ++(CBUUID *)emmocov12ServiceUUID; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMChecksum.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMChecksum.h new file mode 100644 index 0000000..fb4d24c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMChecksum.h @@ -0,0 +1,19 @@ +// +// EMChecksum.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import + +@interface EMChecksum : NSObject { + +} + +- (void)addByte:(int)byte; +- (void)clear; +- (int)sum; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnection.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnection.h new file mode 100644 index 0000000..b73f2b7 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnection.h @@ -0,0 +1,134 @@ + +/** @file */ + +#import +#import "EMSchema.h" +#import "EMConnectionType.h" +#import "EMTypes.h" + +@class EMConnection; + +@protocol EMConnectionDelegate + +-(void)connectionDidTimeout:(EMConnection *)connection; +-(void)connectionDidDisconnect:(EMConnection *)connection; + +@end + +/** + * The state of the current connection. Use KVO to receive updates on this property and react to changes. + */ + +typedef enum { + EMConnectionStateDisconnected, // Disconnected state, no error + EMConnectionStatePending, // A connection has been started, and is pending completion + EMConnectionStateSchemaNotFound, // The schema for the connection is not in the application bundle + EMConnectionStateInvalidSchemaHash, // The device didn't respond with a valid schema hash + EMConnectionStateConnected, // Connected state, no error + EMConnectionStateDisrupted, // The connection was interrupted + EMConnectionStatePendingForDefaultSchema, // The schema could not be found and the connection is being "forced" with the provided default schema. Note: This state will only occur if you have provided a default schema and told the connection manager to force a connection with it. + EMConnectionStateTimeout // The connection timed out +} EMConnectionState; + +extern NSString * const kEMConnectionDidReceiveIndicatorNotificationName; +extern NSString * const kEMIndicatorResourceKey; +extern NSString * const kEMIndicatorNameKey; +extern NSString * const kEMConnectionErrorDomain; +extern NSString * const kEMIndicatorResourceValueKey; + +@interface EMConnection : NSObject { + @protected + EMSchema *_systemSchema; +} + +/** + * This block will be called when an open connection is closed for any reason + */ +@property (atomic, strong) EMResourceBlock connectionClosedBlock; + +/** + * The timeout interval for a pending connection + */ +@property (atomic) NSTimeInterval connectionAttemptTimeout; + +/** + * The connection delegate. EMConnectionManager will post connect and disconnect delegate messages to this object if it is set. + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + + +/** + * The EMDeviceBasicDescription used for conenction + */ +@property (nonatomic, strong) EMDeviceBasicDescription *device; + +/** + * The schema for connection + */ +@property (nonatomic, strong) EMSchema *schema; + + +/** + * Creates a new EMConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device The basic description of a device + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device; + +/** + * Creates a new EMTargetConnection object. + * Actual connection and disconnection to the named target occurs through calls to open and close on this object. + * @param device the name of the target device, including one of the pre-defined prefixes + * @param resourceSchema the schema describing the resources available in this connection + */ +- (id)initWithDevice:(EMDeviceBasicDescription *)device schema:(EMSchema*)resourceSchema; + + +/** + * Returns true if connected and false otherwise. + */ +- (BOOL)isConnected; + +/** + * Opens a connection to the @device device property + * @param successBlock A block to call on a successful connect + * @param failBlock A block to call on a failed connect + */ +- (void)openConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Cancels the attempt to open this EMTargetConnection, posting the open block with a failed status. + */ +- (void)cancelOpen; + +/** + * Closes the connection + * @param successBlock A block to call on a successful disconnect + * @param failBlock A block to call on a failed disconnect + */ +- (void)closeConnectionWithSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Reads a value + * @param resourceName The name of the resource to read + * @param successBlock A block to call on a successful read + * @param failBlock A block to call on a failed read + */ +-(void)readValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +-(void)readSystemValueNamed:(NSString *)resourceName onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +/** + * Writes a resource to the device + * @param resourceValue The resource value + * @param successBlock A block to call on a successful write + * @param failBlock A block to call on a failed write + */ + +-(void)writeResource:(EMResourceValue *)resourceValue onSuccess:(EMResourceBlock)successBlock onFail:(EMFailBlock)failBlock; + +- (NSString*)connectedDeviceSchemaHash; + + +@end + diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionListManager.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionListManager.h new file mode 100644 index 0000000..7c75f7d --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionListManager.h @@ -0,0 +1,95 @@ +#import "EMConnectionType.h" +#import + +/** + * kEMConnectionManagerDidStartUpdating is the name of a notification that is posted when the list manager begins updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStartUpdating; + +/** + * kEMConnectionManagerDidStopUpdating is the name of a notification that is posted when the list manager stops updating, or scanning, for available devices + */ + +extern NSString * const kEMConnectionManagerDidStopUpdating; + +/** + * EMConnectionListManager is a singleton class used for viewing a list of devices available for interaction. + */ +@interface EMConnectionListManager : NSObject + +/** + * @property devices + * A list of devices that has been discovered as available by the connection list manager + */ +@property (nonatomic, strong, readonly) NSArray *devices; + +/** + * @property filterPredicate + * A filter that allows only devices conforming to the predicate to be visible + */ +@property (nonatomic, strong) NSPredicate *filterPredicate; + +/** + * @property updating + * A boolean value indicating whether or not the connection list manager is actively updating the devices list + */ +@property (nonatomic, getter = isUpdating, readonly) BOOL updating; + +/** + * @property updateRate + * updateRate determines the scan frequency for discovering devices + */ +@property (nonatomic) NSTimeInterval updateRate; + + +/** + * @param automaticallyConnectsToLastDevice + * A boolean value indicating whether or not the connection list manager should automatically connect to the last device it was connected to if it encounters it in a scan. + */ +@property (nonatomic) BOOL automaticallyConnectsToLastDevice; + + +/** + * Use the +sharedManager to get the singleton, shared instance of EMConnectionListManager + */ ++(EMConnectionListManager *)sharedManager; + +/** + * Retrieve a device description for a given unique identifier + * @param name The name of the device + */ + +-(EMDeviceBasicDescription *)deviceBasicDescriptionForDeviceNamed:(NSString *)name; + +/** + * Tells the connection list manager to begin actively looking for devices to interact with. + */ +-(void)startUpdating; + +/** + * Tells the connection list manager to stop looking for devices to interact with. + */ +-(void)stopUpdating; + +/** + * Manually clears out all devices on the connection list manager. + */ +-(void)reset; + +/** + * Detect if Bluetooth is available + */ +-(BOOL)isBluetoothAvailable; + +/** + * Add your own connection type outside of bluetooth low energy + */ +-(void)addConnectionTypeToUpdates:(id)connectionType; + +/** + * Remove your own connection type outside of bluetooth low energy + */ +-(void)removeConnectionToFromUpdates:(id)connectionType; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionManager.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionManager.h new file mode 100644 index 0000000..65fb98c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionManager.h @@ -0,0 +1,167 @@ +#import +#import +#import "EMConnection.h" +#import "EMSchema.h" +#import "EMConnectionType.h" + +#ifndef CB_EXTERN_CLASS +#warning "You must include CoreBluetooth in project to use Em-Framework" +#endif + +/** + * A constant for NSUserDefaults that contains the name of the last connected device, if there is one + */ + +extern NSString * const kLastConnectedDevice; + +extern NSString * const kEMConnectionManagerDidUpdateConnectionStateNotificationName; + +/** + * Various types of connection errors. + */ + +typedef enum { + EMConnectionManagerErrorNoSchemaAvailable, + EMConnectionManagerErrorCouldNotDisconnect, + EMConnectionManagerErrorDeviceNotAvailable, +} EMConnectionManagerError; + +extern NSString * const kEMConnectionManagerErrorDomain; + +@class EMTargetDevice; +@class EMConnection; + +/** + * EMConnectionManager is a singleton class for managing a connection with a physical or mock device. + */ + +@interface EMConnectionManager : NSObject + +@property (nonatomic) EMConnectionState connectionState; + +@property (nonatomic, strong) NSURL *defaultSchemaURL; + + +/** + @property backgroundUpdatesEnabled + @description If you set this flag to "YES", the connection manager has the ability to persist while running in the background. By default, the connection manager severs connections when entering the background. + */ +@property (nonatomic) BOOL backgroundUpdatesEnabled; + +/** + * Use the +sharedManager class method to access the application-wide singleton instance of EMConnectionManager. + * Note: Accessing the connection manager in any way other is not recommended. + */ + ++(EMConnectionManager *)sharedManager; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connectino fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ + +-(void)connectDevice:(EMDeviceBasicDescription *)device onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to connect to a specific device. + * + * @param device An instance of EMDeviceBasicDescription the connection manager should connect to + * @param timeout The time the connection manager should allow for a successful connection. After the specified time interval passes, the fail block will be called. + * @param successBlock The block to run after a successful connection + * @param failBlock The block to run if the connection fails + * @description The implementation of this method calls connectDevice:timeoutInterval:onSuccess:onFail: with a default time interval of 10 seconds + */ +-(void)connectDevice:(EMDeviceBasicDescription *)device timeoutInterval:(NSTimeInterval)timeout onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Tells the connection manager to disconnect from a specific device + * + * @param successBlock The block to run after a successful disconnection + * @param failBlock The block to run if the disconnection fails. + */ +-(void)disconnectWithSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Reads a resource from a connected device + * + * @param resourceName The name of the resource to read. This is the name of the resource in the device's schema. + * @param successBlock The block to call when a read occurs successfully. Connection manager will call this block with the value read. + * @param failBlock The block to call when a read fails. + */ +-(void)readResource:(NSString *)resourceName onSuccess:(void(^)(id readValue))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Writes a value to a resource on a connected device + * + * @param resourceValue The value to write to the resource. This should be an instance of NSString, NSData, NSArray, NSNumber, or NSDictionary + * @param resource The name of the resource for writing. This is the name of the resource in the schema. + * @param successBlock The block to call when the write occurs successfully. + * @param failBlock The block to call when the write fails. + */ +-(void)writeValue:(id)resourceValue toResource:(NSString *)resource onSuccess:(void(^)(void))successBlock onFail:(void(^)(NSError *error))failBlock; + +/** + * Returns an array of EMDeviceBasicDescription's for the device that is actively connected + */ +-(EMDeviceBasicDescription *)connectedDevice; + +/** + * Returns a version of the the schema hash from a connected device's firmware as it appears on em-hub + */ +-(NSString *)schemaHashForConnectedDevice; + +/** + * Tells the connection manager where it should look for schemas other than the NSBundle's mainBundle + * + * @param path The path for the directory in which to search + */ +-(void)addSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Tells the connection manager to no longer look in the specified path for schemas + * + * @param path The path to no longer search + * @description Note: This method will never ignore the current bundle's mainBundle + */ +-(void)removeSchemaSearchForFilesInDirectory:(NSString *)path; + +/** + * Forces the connection manager to connect to a device with the default schema + * @param device The device for the forced connection + * @description Use this method with extreme caution. Many undefined behaviors can come from using this method with a schema that isn't an exact match for the specified device. EMConnectionManager uses this method internally. It is very rare that you will need to call this method directly. + */ +-(void)forceConnectionWithDefaultSchema:(EMDeviceBasicDescription *)device; + +/** + * Tells EMConnectionManager to update its internal cache of schemas used for connection. + * @description EMConnectionManager uses this method internally. It is very rare taht you will need to call this method directly. + */ +-(void)updateInternalSchemaCache; + +/** + * Gives the schema name in the application bundle for a given hash string + * @param hashString A full or partial schema hash string + * @description This method takes either a full hash or partial hash. If any schema begins with 'hash string', the file name in the bundle is returned. Returns nil if no matching schema was found in the bundle. + * If one or more schemas share 'hashString' at the beginning of their hash, the first path will be returned. + */ +-(NSString *)schemaFileNameForHashString:(NSString *)hashString; + +/** + * Gets the schema for the connected device. + * @description Returns nil if no device is connected. + */ + +-(EMSchema *)schemaForConnectedDevice; + +/** + * Gets the embedded system protocol level from the schema used to connect to the device + * @description This call does not send a message down to the board - the protocol level is pulled directly from the schema that was used to connect to the device. + */ + +-(NSNumber *)embeddedSystemProtocolLevel; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionType.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionType.h new file mode 100644 index 0000000..c4dc364 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMConnectionType.h @@ -0,0 +1,134 @@ +#import +#import "EMSchema.h" +#import "EMDeviceBasicDescription.h" +#import "EMResourceValue.h" +#import "EMSignalStrengthFilter.h" + +/** + * EMTargetDeviceHandler is implemented by classes interested in manageing connections to devices. By default, this will be the shared instance of EMConnectionManager. + */ +@protocol EMDeviceDelegate +- (void)extendConnectTimeout; +- (void)postIndicatorForResource:(EMResourceValue *)indicator; +- (void)operationDone:(int)status; +@end + + +#pragma mark - EMConnectionTypeScannerDelegate Declaration + +/** + * These methods are sen tto the connection delegate to inform it of devices that come available or go offline. + */ + +@protocol EMConnectionTypeScannerDelegate + +/** + * Tells the delegate a device was found. + */ + +-(void)deviceScanner:(id)scanner didFindDevice:(EMDeviceBasicDescription *)device; + +/** + * Tells the delegate a device was lost. + */ +-(void)deviceScanner:(id)scanner didLoseDevice:(EMDeviceBasicDescription *)device; + + +/** + * Updates the data for a device description + */ +-(void)deviceScanner:(id)scanner didUpdateDevice:(EMDeviceBasicDescription *)device; + +@end + +#pragma mark - EMConnectionType Declaration + +/** + * Abstracts a given protocol for connecting to devices. + */ + +@protocol EMConnectionType + +/** + * The delegate for scanning + */ +@property (nonatomic, unsafe_unretained) id scanDelegate; + +/** + * The delegate for connection communication + */ +@property (nonatomic, unsafe_unretained) id connectionDelegate; + +/** + * The schema for connection + */ +@property (nonatomic, unsafe_unretained) EMSchema *schema; + +/** + * The last read resource value from the device + */ +@property (nonatomic, strong) EMResourceValue *lastReadValue; + +/** + * A boolean indicating whether or not there is a connection with a device. + */ +@property (nonatomic, readonly, getter = isConnected) BOOL connected; + +/** + * The class to use for filtering, or smoothin, signal strength values + */ +@property (nonatomic, strong) Class signalStrengthFilterClass; + +/** + * The type of device - this can be set to anything and retreived for printing or examining. + */ +-(NSString *)deviceType; + +/** + * Tells the connection to start looking for devices of its type. + */ +-(void)startUpdating; + +/** + * Tells the connection to stop looking for devices of its type. + */ +-(void)stopUpdating; + +/** + * Returns whether or not there is a connection with a device. + */ +-(BOOL)isConnected; + +/** + * disconnects the current device. + * + */ +-(void)disconnect; + +/** + * Establishes a connection with a device + */ +-(void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id)connDelegate; + + +/** + * YES if available on the current device, NO if unavailable. + */ +-(BOOL)isAvailable; + +/** + * Fetches a resource. Can be retrieved in "lastReadValue" + */ +-(void)fetch:(id)resourceValue; + +/** + * Fetches a system resource. Can be retrieved in "lastReadValue". + */ +- (void)fetchSystemResource:(id)resourceValue; + +/** + * writes a value to a device. + */ +-(void)store:(id)resourceValue; +@end + diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h new file mode 100644 index 0000000..826f60c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMDeviceBasicDescription.h @@ -0,0 +1,64 @@ +#import "EMSignalStrengthFilter.h" + +@protocol EMConnectionType; + +/** + * EMDeviceBasicDescription is a class used to describe basic device characteristics throughout the entire framework. + * All devices, regardless of connection type, will have these properties. + * + * All classes implementing the EMConnectionType protocol will receive and deliver device information in the form of an EMDeviceBasicDescription. + */ + +@interface EMDeviceBasicDescription : NSObject + +/** + * The name of the device used thoughout the framework. + * Like the unique_identifier, this property needs to be unique. + */ +@property (nonatomic, strong) NSString *name; + +/** + * A concrete EMConnectionType instance that will be used to send messages to the device. + */ +@property (nonatomic, strong) id connectionType; + +/* + * An object that can describe the device to the provided connection type. + * For example, for bluetooth, this might be an instance of CBPeripheral. + */ +@property (nonatomic, strong) id deviceObject; + +/** + * A value between -100 and 0 used to describe signal strength. + */ +@property (nonatomic) float signalStrength; + +/** + * The signal strength filter for smoothing + */ +@property (nonatomic, strong) id signalStrengthFilter; + +/** + Data that was discovered along with the device. + Ex: When dealing with bluetooth, this is the advertising packet data + */ +@property (nonatomic, strong) NSData *advertiseData; + +/** + * An object taken from the advertise data based on the advertise resource in the device's schema + * Possible classes: NSString, NSNumber, NSDictionary, NSArray, NSData + */ +@property (nonatomic, strong) id advertiseObject; + +/** + The first six characters of the device's schema + */ +@property (nonatomic, strong) NSString *shortSchemaHash; + +/** + The name of the schema file in your bundle that relates to this device. + NOTE: Many devices do not broadcast this information. In this case, this property will not be set + */ +@property (nonatomic, strong) NSString *schemaFilePath; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMFramework.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMFramework.h new file mode 100644 index 0000000..bd5a435 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMFramework.h @@ -0,0 +1,28 @@ +// +// EMFramework.h +// Emmoco +// +// Created by bob frankel on 8/22/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMConnectionManager.h" +#import "EMConnectionListManager.h" +#import "EMConnection.h" +#import "EMBluetoothLowEnergyConnectionType.h" +#import "EMSchema.h" +#import "EMResourceValue.h" + +#define EMFrameworkProtocol_11 + +#define EMMinFramework @"12" +#define EMMaxFramework @"13" + +#define SIGNAL_STRENGTH_UNAVAILABLE FLT_MIN + +#ifdef DEBUG +#define EMLog(format, ...) NSLog(@"<%@:(%d)> %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(format), ##__VA_ARGS__]) +#else +#define EMLog(format, ...) +#endif \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMRSSIFilter.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMRSSIFilter.h new file mode 100644 index 0000000..847cd9c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMRSSIFilter.h @@ -0,0 +1,19 @@ +// +// EMRSSIFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import +#import "EMSignalStrengthFilter.h" + +@interface EMRSSIFilter : NSObject + ++(EMRSSIFilter *)filterWithInitialRSSI:(float)rssi; + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h new file mode 100644 index 0000000..7de58f9 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue+CocoaAdditions.h @@ -0,0 +1,9 @@ +#import "EMResourceValue.h" + +@interface EMResourceValue (CocoaAdditions) + +-(void)setNSObjectValue:(id)object; + +-(id)NSObjectValue; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue.h new file mode 100644 index 0000000..44e36c5 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMResourceValue.h @@ -0,0 +1,246 @@ +// +// EMResourceValue.h +// Emmoco +// +// Created by bob frankel on 8/8/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSerialPacket.h" + +@class EMSchema; +@class EMSerialPacket; +@class EMResourceValue; + +/** + * A protocol to define the methods that all EMResourceValue subclasses must define. + * + * Written by Carolyn Vaughan + */ + +@protocol EMResourceValueProtocol + +/** + * Internal initialization method used by EMResourceValue subclasses + * @param theName the name of this value + * @param theType the type of this value + * @param theResourceSchema the schema associated with this value + * @return this value + */ +- (id)initWithName:(NSString*)theName type:(NSString*)theType schema:(EMSchema*)theResourceSchema; + +/** + * Returns true if the type of this value is an Array, and false otherwise. + */ +- (BOOL)isArray; + +/** + * Returns true if the type of this value is a Num, and false otherwise. + */ +- (BOOL)isNum; + +/** + * Returns true if the type of this value is an Enum, and false otherwise. + */ +- (BOOL)isEnum; + +/** + * Returns true if the type of this value is a File, and false otherwise. + */ +- (BOOL)isFile; + +/** + * Returns true if the type of this value is an Int, and false otherwise. + */ +- (BOOL)isInt; + +/** + * Returns true if the type of this value is a String, and false otherwise. + */ +- (BOOL)isString; + +/** + * Returns true if the type of this value is scalar (Num, Enum, Int, String), and false otherwise. + */ +- (BOOL)isScalar; + +/** + * Return true if the type of this value is a Struct, and false otherwise. + */ +- (BOOL)isStruct; + +/** + * Return true if the type of this value is a Void, and false otherwise. + */ +- (BOOL)isVoid; + +/** + * Used to put the resource's value to the device + * @param buffer the data buffer being sent to the device + * + * The PUT is based on RESTful resourcing + */ +- (void)putData:(EMSerialPacket*)buffer; + +/** + * Used to get the resource's value from the device + * @param buffer the data buffer being received from the device + * @param size the amount of data the buffer holds + * + * The GET is based on RESTful resourcing + */ +- (void)getDataOfSize:(int)size fromBuffer:(EMSerialPacket*)buffer; + +/** + * Assign a double value to a resource. + * @param value the value to be assigned, represented as a double + */ +- (void)setDoubleValue:(double)value; + +/** + * Assign a long value to a resource. For Num and Enum resources, this sets the ordinal value for the resource instead of setting the value directly. + * @param value the value to be assigned, represented as a long + */ +- (void)setLongValue:(long long)value; + +/** + * Assign a string value to a resource. + * @param value the value to be assigned, represented as a String + */ +- (void)setStringValue:(NSString*)value; + +/** + * This ResourceValue, as a double. + * @exception UsageError the type of this value is not a Num + */ +- (double)doubleValue; + +/** + * This ResourceValue, as a long. For Num and Enum resources, this returns the ordinal value for the resource instead of the actual value. + * @exception UsageError the type of this value is not a Scalar + */ +- (long long)longValue; + +/** + * This ResourceValue, as a String. + * @exception UsageError the type of this value is not a Scalar + */ +- (NSString*)stringValue; + +/** + * Assign another resource value's value to this resource value + * @param source the ResourceValue who's value you wish to assign to this EMResourceValue instance + */ +- (void)copyFromResource:(EMResourceValue*)source; + +/** + * Reset this ResourceValue to its initial state upon creation + */ +- (void)reset; + +/** + * The minimum numerical value for this ResourceValue. + */ +- (double)min; + +/** + * The maximum numerical value for this ResourceValue. + */ +- (double)max; + +/** + * The step for this ResourceValue. + */ +- (double)step; + +/** + * The maximum number of distinct values for this ResourceValue. + */ +- (long)length; + +/** + * An array of acceptable enum values for this ResourceValue. + */ +- (NSArray *)enumValues; + +/** + * An array of acceptable field names for this ResourceValue. + */ +- (NSArray *)fieldNames; + +/** + * Select a ResourceValue element from a ResourceValue Array by index + * @param index the element to be selected + * @return the indexed element + */ +- (EMResourceValue*)index:(int)index; + +/** + * Select a ResourceValue element from a ResourceValue Struct by field name + * @param fieldName the element to be selected + * @return the ResourceValue held in the selected field + */ +- (EMResourceValue*)select:(NSString*)fieldName; + +/** + * Return the end-of-file status for this ResourceValue File. For internal use only. + */ +- (BOOL)fileEof; + +/** + * Prepare a local file associated with this ResourceValue File for reading. For internal use only; + d*/ +- (void)fileFetch; + +/** + * Prepare a local file associated with this ResourceValue File for writing. For internal use only; + */ +- (void)fileStore; + +-(NSData *)fileData; + +@end + +/** + * A container for different types of resource values. + * Instances of this class are used to hold values for resources whose types is + * either Void, Int, Enum, Num, String, Struct, Array, or File. + * + * See also: + * + * - [EMSchema newResourceValueForResourceNamed:] + * + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMResourceValue : NSObject { + +} + +/** + * The name of the resource. + */ +@property(readonly) NSString* name; + +/** + * The resource schema associated with the resource. + */ +@property(readonly) EMSchema* resourceSchema; + +/** + * The type of the resource. + */ +@property(readonly) NSString* type; + +- (int)valueSize; +/** + * Create a EMResourceValue. This method is used internally by the framework. + * @param name the name given to the newly-created value + * @param type the type of the newly-created value + * @param resourceSchema an EMSchema instance + * @return a new EMResourceValue instance + */ ++ (EMResourceValue*)resourceWithName:(NSString*)name ofType:(NSString*)type fromSchema:(EMSchema*)resourceSchema; + +@end + diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSchema.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSchema.h new file mode 100644 index 0000000..e219126 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSchema.h @@ -0,0 +1,237 @@ +// +// EMSchema.h +// Emmoco +// +// Created by bob frankel on 8/7/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMResourceValue.h" + +typedef enum { + EMResourceAccessTypeRead = 1 << 0, + EMResourceAccessTypeWrite = 1 << 1, + EMResourceAccessTypeIndicate = 1 << 2, +} EMResourceAccessType; + +@class EMResourceValue; + +/** + * A set of meta-data describing a set of resources. + * Written by Bob Frankel and Carolyn Vaughan + */ +@interface EMSchema : NSObject { + +} + +/** + * Creates a EMResourceSchema instance from the contents of a file. + * @param fileName a file containing JSON content + * @return a newly created EMResourceSchema instance + */ ++ (EMSchema*)schemaFromFile:(NSString*)fileName; + +/** + * Get the read/write/indicator access capabilities of a named resource + * @param resourceName a valid resource name in this schema + * @return an NSString containing the characters 'r', 'w', and 'i' as appropriate + * @exception UsageError the resource name is invalid + */ +- (EMResourceAccessType)accessForResource:(NSString*)resourceName; + +/** + * Returns a sorted NSArray containing all application resource names in this schema + */ +- (NSArray*)applicationResources; + +/** + * Get the parameters associated with a number type. + * @param type a valid number type name in this schema + * @return a four-element NSArray holding the min, max, step, and prec parameters of this type + * @exception UsageError the number type name is invalid + */ +- (NSArray*)numberParametersForType:(NSString*)type; + +/** +* Get the representation type associated with a number type. +* @param type a valid number type name in this schema +* @return an integral representation type +* @exception UsageError the number type name is invalid +*/ +- (NSString*)numericRepresentationForType:(NSString*)type; + +/** + * Get the values associated with an enum type. + * @param type a valid enum type name in this schema + * @return a NSDictionary containing enum value names and their corresponding ordinal + * @exception UsageError the enum type name is invalid + */ +- (NSDictionary*)enumValuesForType:(NSString*)type; + +/** + * Get the names of the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSArray containing field names + * @exception UsageError the struct type name is invalid + */ +- (NSArray*)fieldNamesForType:(NSString*)type; + +/** + * Get the fields associated with a struct type. + * @param type a valid struct type name in this schema + * @return a NSDictionary containing field names and their corresponding type code + * @exception UsageError the struct type name is invalid + */ +- (NSDictionary*)fieldsForType:(NSString*)type; + +/** + * Get the length of this string type. + * @param type a valid string type name in this schema + * @return the length of this string type + * @exception UsageError the string type name is invalid + */ +- (int)stringLengthForType:(NSString*)type; + +/** + * Returns the fully-qualified name of this schema. + */ +- (NSString*)name; + +/** + * Returns the protocol level of this schema + */ +- (int)protocolLevel; + +/** + * Returns an NSDictionary containing all resource names in this schema and their corresponding type code. + */ +- (NSDictionary*)resources; + +/** + * Returns the maximum size in bytes amongst all resource types in this schema. + */ +- (int)maxResourceSize; + +/** + * Get the alignment of a named resource + * @param resourceName a named resource in this schema + * @return the alignment in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)byteAlignmentForResource:(NSString*)resourceName; + +/** + * Get the unique id associated with a named resource + * @param resourceName a named resource in this schema + * @return the corresponding resource id + * @exception UsageError the resource name is invalid + */ +- (int)idForResource:(NSString*)resourceName; + +/** + * Get the resource name associated with this resource id + * @param resourceId a resource id + * @return the corresponding resource name + * @exception UsageError the resource id is invalid + * @see idForResource: + */ +- (NSString*)nameForResourceWithID:(NSInteger)resourceId; + +/** + * Get the size of a named resource + * @param resourceName a named resource in this schema + * @return the size in bytes of this resource + * @exception UsageError the resource name is invalid + */ +- (int)sizeForResourceNamed:(NSString*)resourceName; + +/** + * Get the size of a standard scalar type + * @param type a scalar type code + * @return the size in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)sizeForStandardType:(NSString*)type; + +/** + * Get the alignment of a standard scalar type + * @param type a scalar type code + * @return the alignment in bytes of this standard type + * @exception UsageError the type code is invalid + */ +- (int)alignmentForStandardType:(NSString*)type; + +/** + * Returns a sorted NSArray containing all system resource names in this schema + */ +- (NSArray*)systemResources; + +/** + * Get the type of a named resource + * @param resourceName the name of a resource in this schema + * @return the type code associated with this resource + * @exception UsageError the resource name is invalid + */ +- (NSString*)typeOfResourceNamed:(NSString*)resourceName; + +/** + * Returns the owner of the schema definition this schema was created from. + */ +- (NSString*)owner; + +/** + * Returns the version of the schema definition this schema was created from. + */ +- (NSString*)version; + +/** + * Returns the description associated with this schema. + */ +- (NSString*)schemaDescription; + +/** + * Returns the UUID associated with this schema. + */ +- (NSString*)UUID; + +/** + * Returns the UUID associated with this schema as an array of numbers. + */ +- (NSArray *)numericalUUID; + +/** + * Returns the build number associated with this schema as an array of numbers. + */ +- (NSArray *)buildDate; + +/** + * Returns the schema hash associated with this schema as an array of numbers. + */ +- (NSArray *)schemaHash; + +/** + * Returns the name of the resource that is being broadcast in the advertising packets. Returns nil if none. + */ +-(NSString *)broadcastResourceName; + +/** + * Create a new ResourceValue instance for a named resource. + * @param resourceName a named resource in this schema + * @return a newly created EMResourceValue to a value for this resource + * @exception UsageError the resource name is invalid + */ +- (EMResourceValue*)newResourceValueForResourceNamed:(NSString*)resourceName; + +/* + * TODO - fill in this documentation + */ +- (BOOL)validateResourceNamed:(NSString*)resourceName withAccess:(EMResourceAccessType)access; + +-(NSNumber *)embeddedProtocolNumber; + +-(int)packedSizeForType:(NSString*)type; +-(int)unpackedSizeForType:(NSString*)type; +-(NSArray *)fieldPackingsForType:(NSString*)type; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSerialPacket.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSerialPacket.h new file mode 100644 index 0000000..4e10fbf --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSerialPacket.h @@ -0,0 +1,46 @@ +// +// EMSerialPacket.h +// Emmoco +// +// Created by bob frankel on 8/18/11. +// Copyright 2011 Emmoco, Inc.. All rights reserved. +// + +#import +#import "EMSchema.h" +#import "EMChecksum.h" + +@class EMSchema; + +#define EM_MAX_DATA_SIZE 240 +#define EM_HEADER_SIZE 4 + +enum { + EMSerialPacket_NOP = 1 << 0, + EMSerialPacket_FETCH = 1 << 1, + EMSerialPacket_FETCH_DONE = 1 << 2, + EMSerialPacket_STORE = 1 << 3, + EMSerialPacket_STORE_DONE = 1 << 4, + EMSerialPacket_INDICATOR = 1 << 5 +}; +typedef NSUInteger EMSerialPacketKind; + +typedef struct EMSerialPacketHeader { + int size; + EMSerialPacketKind kind; + int resourceId; +} EMSerialPacketHeader; + +@interface EMSerialPacket : NSObject { + +} + +@property(readonly) uint8_t* buffer; +@property(readonly) int length; + +- (void)addInteger:(long long)anInt forByteSize:(int)size; +- (void)alignTo:(int)align; +- (void)rewind; +- (long long)scanIntegerForByteSize:(int)size asUnsigned:(BOOL)isUnsigned; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h new file mode 100644 index 0000000..241d8fc --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMSignalStrengthFilter.h @@ -0,0 +1,16 @@ +// +// EMSignalStrengthFilter.h +// EMFramework +// +// Created by Dexter Weiss on 8/9/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@protocol EMSignalStrengthFilter + +-(id)initWithInitialSignalStrengthValue:(float)signalStrengthValue; +-(float)addSignalStrengthValue:(float)signalStrengthValue; + +@end diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMTypes.h b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMTypes.h new file mode 100644 index 0000000..9aa20fb --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/Headers/EMTypes.h @@ -0,0 +1,21 @@ +// +// EMDevice.h +// Emmoco +// +// Copyright 2012 Emmoco, Inc.. All rights reserved. +// + +typedef enum { + EMOperationStatusSuccess, + EMOperationStatusFailure +} EMOperationStatus; + +/* + * Block type used to doing callbacks to user programs. User programs define callbacks conforming to this + * block signature and the framework calls them back suppling status value and data object + */ +typedef void(^EMResourceBlock)(EMOperationStatus status, EMResourceValue *value); + +typedef void(^EMStatusBlock)(EMOperationStatus status); + +typedef void(^EMFailBlock)(NSError *error); \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/README.md b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/README.md new file mode 100644 index 0000000..a2ec505 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/EmmocoMobileFramework/README.md @@ -0,0 +1,18 @@ +# Adding EMFramework to your project +================== +### Library dependencies +1) libEMFramework.a +2) CoreBluetooth.framework + +================== + +### Add the headers to your project + +All headers found in the `EmmocoMobileFramework/Headers` folder should be included. + +================== + +### Add Schemas to your project + +Add the system.json file from the Assets/ directory into your application bundle. + diff --git a/ios-examples-13.4.9/FirstApp/FirstApp.xcodeproj/project.pbxproj b/ios-examples-13.4.9/FirstApp/FirstApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..07dd861 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstApp.xcodeproj/project.pbxproj @@ -0,0 +1,586 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3471866118070D9300FA0FB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866018070D9300FA0FB2 /* Foundation.framework */; }; + 3471866318070D9300FA0FB2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866218070D9300FA0FB2 /* CoreGraphics.framework */; }; + 3471866518070D9300FA0FB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866418070D9300FA0FB2 /* UIKit.framework */; }; + 3471867A18070D9300FA0FB2 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471867918070D9300FA0FB2 /* XCTest.framework */; }; + 3471867B18070D9300FA0FB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866018070D9300FA0FB2 /* Foundation.framework */; }; + 3471867C18070D9300FA0FB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3471866418070D9300FA0FB2 /* UIKit.framework */; }; + 3471868418070D9300FA0FB2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 3471868218070D9300FA0FB2 /* InfoPlist.strings */; }; + 3471868618070D9300FA0FB2 /* TestAppExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3471868518070D9300FA0FB2 /* TestAppExampleTests.m */; }; + 347186A618070E7200FA0FB2 /* libEMFramework.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 347186A518070E7200FA0FB2 /* libEMFramework.a */; }; + 347186AC18070FAB00FA0FB2 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */; }; + 34AAB883189804FF0019860D /* EMAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB877189804FF0019860D /* EMAppDelegate.m */; }; + 34AAB884189804FF0019860D /* EMConnectingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB878189804FF0019860D /* EMConnectingView.xib */; }; + 34AAB885189804FF0019860D /* EMDevicePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */; }; + 34AAB886189804FF0019860D /* EMFirstAppViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB87C189804FF0019860D /* EMFirstAppViewController.m */; }; + 34AAB887189804FF0019860D /* first_app.json in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB87D189804FF0019860D /* first_app.json */; }; + 34AAB889189804FF0019860D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB880189804FF0019860D /* main.m */; }; + 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB881189804FF0019860D /* MainStoryboard.storyboard */; }; + 34AAB88B189804FF0019860D /* system.json in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB882189804FF0019860D /* system.json */; }; + 34AAB88D189805300019860D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB88C189805300019860D /* Images.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 3471867D18070D9300FA0FB2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3471865518070D9300FA0FB2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3471865C18070D9300FA0FB2; + remoteInfo = TestAppExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3471865D18070D9300FA0FB2 /* FirstApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FirstApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3471866018070D9300FA0FB2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 3471866218070D9300FA0FB2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 3471866418070D9300FA0FB2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 3471866818070D9300FA0FB2 /* FirstApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "FirstApp-Info.plist"; sourceTree = ""; }; + 3471866A18070D9300FA0FB2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3471866C18070D9300FA0FB2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 3471866E18070D9300FA0FB2 /* FirstApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "FirstApp-Prefix.pch"; sourceTree = ""; }; + 3471867818070D9300FA0FB2 /* FirstAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FirstAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3471867918070D9300FA0FB2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 3471868118070D9300FA0FB2 /* FirstAppTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "FirstAppTests-Info.plist"; sourceTree = ""; }; + 3471868318070D9300FA0FB2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 3471868518070D9300FA0FB2 /* TestAppExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestAppExampleTests.m; sourceTree = ""; }; + 3471869118070E6500FA0FB2 /* EMBluetoothLowEnergyConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMBluetoothLowEnergyConnectionType.h; sourceTree = ""; }; + 3471869218070E6500FA0FB2 /* EMChecksum.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMChecksum.h; sourceTree = ""; }; + 3471869318070E6500FA0FB2 /* EMConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnection.h; sourceTree = ""; }; + 3471869418070E6500FA0FB2 /* EMConnectionIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionIndicator.h; sourceTree = ""; }; + 3471869518070E6500FA0FB2 /* EMConnectionListManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListManager.h; sourceTree = ""; }; + 3471869618070E6500FA0FB2 /* EMConnectionListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionListView.h; sourceTree = ""; }; + 3471869718070E6500FA0FB2 /* EMConnectionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionManager.h; sourceTree = ""; }; + 3471869818070E6500FA0FB2 /* EMConnectionPickerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionPickerDelegate.h; sourceTree = ""; }; + 3471869918070E6500FA0FB2 /* EMConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMConnectionType.h; sourceTree = ""; }; + 3471869A18070E6500FA0FB2 /* EMDeviceBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMDeviceBasicDescription.h; sourceTree = ""; }; + 3471869B18070E6500FA0FB2 /* EMFramework.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMFramework.h; sourceTree = ""; }; + 3471869C18070E6500FA0FB2 /* EMMockConnectionType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockConnectionType.h; sourceTree = ""; }; + 3471869D18070E6500FA0FB2 /* EMMockDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMMockDevice.h; sourceTree = ""; }; + 3471869E18070E6500FA0FB2 /* EMResourceValue+CocoaAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EMResourceValue+CocoaAdditions.h"; sourceTree = ""; }; + 3471869F18070E6500FA0FB2 /* EMResourceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMResourceValue.h; sourceTree = ""; }; + 347186A018070E6500FA0FB2 /* EMSchema.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSchema.h; sourceTree = ""; }; + 347186A118070E6500FA0FB2 /* EMSerialPacket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSerialPacket.h; sourceTree = ""; }; + 347186A218070E6500FA0FB2 /* EMSignalStrengthFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMSignalStrengthFilter.h; sourceTree = ""; }; + 347186A318070E6500FA0FB2 /* EMTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EMTypes.h; sourceTree = ""; }; + 347186A418070E6500FA0FB2 /* NSTimer+EMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTimer+EMAdditions.h"; sourceTree = ""; }; + 347186A518070E7200FA0FB2 /* libEMFramework.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libEMFramework.a; path = EmmocoMobileFramework/Framework/libEMFramework.a; sourceTree = SOURCE_ROOT; }; + 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; + 34AAB876189804FF0019860D /* EMAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EMAppDelegate.h; path = FirstAppExample/EMAppDelegate.h; sourceTree = SOURCE_ROOT; }; + 34AAB877189804FF0019860D /* EMAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EMAppDelegate.m; path = FirstAppExample/EMAppDelegate.m; sourceTree = SOURCE_ROOT; }; + 34AAB878189804FF0019860D /* EMConnectingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = EMConnectingView.xib; path = FirstAppExample/EMConnectingView.xib; sourceTree = SOURCE_ROOT; }; + 34AAB879189804FF0019860D /* EMDevicePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EMDevicePickerViewController.h; path = FirstAppExample/EMDevicePickerViewController.h; sourceTree = SOURCE_ROOT; }; + 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EMDevicePickerViewController.m; path = FirstAppExample/EMDevicePickerViewController.m; sourceTree = SOURCE_ROOT; }; + 34AAB87B189804FF0019860D /* EMFirstAppViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EMFirstAppViewController.h; path = FirstAppExample/EMFirstAppViewController.h; sourceTree = SOURCE_ROOT; }; + 34AAB87C189804FF0019860D /* EMFirstAppViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = EMFirstAppViewController.m; path = FirstAppExample/EMFirstAppViewController.m; sourceTree = SOURCE_ROOT; }; + 34AAB87D189804FF0019860D /* first_app.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = first_app.json; path = FirstAppExample/first_app.json; sourceTree = SOURCE_ROOT; }; + 34AAB87E189804FF0019860D /* FirstApp-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "FirstApp-Info.plist"; path = "FirstAppExample/FirstApp-Info.plist"; sourceTree = SOURCE_ROOT; }; + 34AAB87F189804FF0019860D /* FirstApp-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "FirstApp-Prefix.pch"; path = "FirstAppExample/FirstApp-Prefix.pch"; sourceTree = SOURCE_ROOT; }; + 34AAB880189804FF0019860D /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = FirstAppExample/main.m; sourceTree = SOURCE_ROOT; }; + 34AAB881189804FF0019860D /* MainStoryboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = MainStoryboard.storyboard; path = FirstAppExample/MainStoryboard.storyboard; sourceTree = SOURCE_ROOT; }; + 34AAB882189804FF0019860D /* system.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = system.json; path = FirstAppExample/system.json; sourceTree = SOURCE_ROOT; }; + 34AAB88C189805300019860D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FirstAppExample/Images.xcassets; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3471865A18070D9300FA0FB2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 347186AC18070FAB00FA0FB2 /* CoreBluetooth.framework in Frameworks */, + 3471866318070D9300FA0FB2 /* CoreGraphics.framework in Frameworks */, + 3471866518070D9300FA0FB2 /* UIKit.framework in Frameworks */, + 347186A618070E7200FA0FB2 /* libEMFramework.a in Frameworks */, + 3471866118070D9300FA0FB2 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867518070D9300FA0FB2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3471867A18070D9300FA0FB2 /* XCTest.framework in Frameworks */, + 3471867C18070D9300FA0FB2 /* UIKit.framework in Frameworks */, + 3471867B18070D9300FA0FB2 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3471865418070D9300FA0FB2 = { + isa = PBXGroup; + children = ( + 3471866618070D9300FA0FB2 /* FirstApp */, + 3471867F18070D9300FA0FB2 /* FirstAppExampleTests */, + 3471865F18070D9300FA0FB2 /* Frameworks */, + 3471865E18070D9300FA0FB2 /* Products */, + ); + sourceTree = ""; + }; + 3471865E18070D9300FA0FB2 /* Products */ = { + isa = PBXGroup; + children = ( + 3471865D18070D9300FA0FB2 /* FirstApp.app */, + 3471867818070D9300FA0FB2 /* FirstAppTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 3471865F18070D9300FA0FB2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 347186AB18070FAB00FA0FB2 /* CoreBluetooth.framework */, + 3471866018070D9300FA0FB2 /* Foundation.framework */, + 3471866218070D9300FA0FB2 /* CoreGraphics.framework */, + 3471866418070D9300FA0FB2 /* UIKit.framework */, + 3471867918070D9300FA0FB2 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 3471866618070D9300FA0FB2 /* FirstApp */ = { + isa = PBXGroup; + children = ( + 34AAB881189804FF0019860D /* MainStoryboard.storyboard */, + 34AAB876189804FF0019860D /* EMAppDelegate.h */, + 34AAB877189804FF0019860D /* EMAppDelegate.m */, + 34AAB87B189804FF0019860D /* EMFirstAppViewController.h */, + 34AAB87C189804FF0019860D /* EMFirstAppViewController.m */, + 34AAB88C189805300019860D /* Images.xcassets */, + 34AAB87E189804FF0019860D /* FirstApp-Info.plist */, + 34AAB87F189804FF0019860D /* FirstApp-Prefix.pch */, + 34AAB880189804FF0019860D /* main.m */, + 347186B91807290E00FA0FB2 /* Schemas */, + 347186A718070F7F00FA0FB2 /* Device Picker */, + 3471868F18070E4300FA0FB2 /* Framework */, + 3471866718070D9300FA0FB2 /* Supporting Files */, + ); + name = FirstApp; + path = TestAppExample; + sourceTree = ""; + }; + 3471866718070D9300FA0FB2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3471866818070D9300FA0FB2 /* FirstApp-Info.plist */, + 3471866918070D9300FA0FB2 /* InfoPlist.strings */, + 3471866C18070D9300FA0FB2 /* main.m */, + 3471866E18070D9300FA0FB2 /* FirstApp-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3471867F18070D9300FA0FB2 /* FirstAppExampleTests */ = { + isa = PBXGroup; + children = ( + 3471868518070D9300FA0FB2 /* TestAppExampleTests.m */, + 3471868018070D9300FA0FB2 /* Supporting Files */, + ); + name = FirstAppExampleTests; + path = TestAppExampleTests; + sourceTree = ""; + }; + 3471868018070D9300FA0FB2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 3471868118070D9300FA0FB2 /* FirstAppTests-Info.plist */, + 3471868218070D9300FA0FB2 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 3471868F18070E4300FA0FB2 /* Framework */ = { + isa = PBXGroup; + children = ( + 347186A518070E7200FA0FB2 /* libEMFramework.a */, + 3471869018070E6500FA0FB2 /* Headers */, + ); + name = Framework; + sourceTree = ""; + }; + 3471869018070E6500FA0FB2 /* Headers */ = { + isa = PBXGroup; + children = ( + 3471869118070E6500FA0FB2 /* EMBluetoothLowEnergyConnectionType.h */, + 3471869218070E6500FA0FB2 /* EMChecksum.h */, + 3471869318070E6500FA0FB2 /* EMConnection.h */, + 3471869418070E6500FA0FB2 /* EMConnectionIndicator.h */, + 3471869518070E6500FA0FB2 /* EMConnectionListManager.h */, + 3471869618070E6500FA0FB2 /* EMConnectionListView.h */, + 3471869718070E6500FA0FB2 /* EMConnectionManager.h */, + 3471869818070E6500FA0FB2 /* EMConnectionPickerDelegate.h */, + 3471869918070E6500FA0FB2 /* EMConnectionType.h */, + 3471869A18070E6500FA0FB2 /* EMDeviceBasicDescription.h */, + 3471869B18070E6500FA0FB2 /* EMFramework.h */, + 3471869C18070E6500FA0FB2 /* EMMockConnectionType.h */, + 3471869D18070E6500FA0FB2 /* EMMockDevice.h */, + 3471869E18070E6500FA0FB2 /* EMResourceValue+CocoaAdditions.h */, + 3471869F18070E6500FA0FB2 /* EMResourceValue.h */, + 347186A018070E6500FA0FB2 /* EMSchema.h */, + 347186A118070E6500FA0FB2 /* EMSerialPacket.h */, + 347186A218070E6500FA0FB2 /* EMSignalStrengthFilter.h */, + 347186A318070E6500FA0FB2 /* EMTypes.h */, + 347186A418070E6500FA0FB2 /* NSTimer+EMAdditions.h */, + ); + name = Headers; + path = EmmocoMobileFramework/Headers; + sourceTree = SOURCE_ROOT; + }; + 347186A718070F7F00FA0FB2 /* Device Picker */ = { + isa = PBXGroup; + children = ( + 34AAB878189804FF0019860D /* EMConnectingView.xib */, + 34AAB879189804FF0019860D /* EMDevicePickerViewController.h */, + 34AAB87A189804FF0019860D /* EMDevicePickerViewController.m */, + ); + name = "Device Picker"; + sourceTree = ""; + }; + 347186B91807290E00FA0FB2 /* Schemas */ = { + isa = PBXGroup; + children = ( + 34AAB87D189804FF0019860D /* first_app.json */, + 34AAB882189804FF0019860D /* system.json */, + ); + name = Schemas; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3471865C18070D9300FA0FB2 /* FirstApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3471868918070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "FirstApp" */; + buildPhases = ( + 3471865918070D9300FA0FB2 /* Sources */, + 3471865A18070D9300FA0FB2 /* Frameworks */, + 3471865B18070D9300FA0FB2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = FirstApp; + productName = TestAppExample; + productReference = 3471865D18070D9300FA0FB2 /* FirstApp.app */; + productType = "com.apple.product-type.application"; + }; + 3471867718070D9300FA0FB2 /* FirstAppTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3471868C18070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "FirstAppTests" */; + buildPhases = ( + 3471867418070D9300FA0FB2 /* Sources */, + 3471867518070D9300FA0FB2 /* Frameworks */, + 3471867618070D9300FA0FB2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3471867E18070D9300FA0FB2 /* PBXTargetDependency */, + ); + name = FirstAppTests; + productName = TestAppExampleTests; + productReference = 3471867818070D9300FA0FB2 /* FirstAppTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3471865518070D9300FA0FB2 /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = EM; + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = Emmoco; + TargetAttributes = { + 3471867718070D9300FA0FB2 = { + TestTargetID = 3471865C18070D9300FA0FB2; + }; + }; + }; + buildConfigurationList = 3471865818070D9300FA0FB2 /* Build configuration list for PBXProject "FirstApp" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 3471865418070D9300FA0FB2; + productRefGroup = 3471865E18070D9300FA0FB2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3471865C18070D9300FA0FB2 /* FirstApp */, + 3471867718070D9300FA0FB2 /* FirstAppTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3471865B18070D9300FA0FB2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34AAB884189804FF0019860D /* EMConnectingView.xib in Resources */, + 34AAB88D189805300019860D /* Images.xcassets in Resources */, + 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */, + 34AAB88B189804FF0019860D /* system.json in Resources */, + 34AAB887189804FF0019860D /* first_app.json in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867618070D9300FA0FB2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3471868418070D9300FA0FB2 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3471865918070D9300FA0FB2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 34AAB885189804FF0019860D /* EMDevicePickerViewController.m in Sources */, + 34AAB883189804FF0019860D /* EMAppDelegate.m in Sources */, + 34AAB886189804FF0019860D /* EMFirstAppViewController.m in Sources */, + 34AAB889189804FF0019860D /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3471867418070D9300FA0FB2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3471868618070D9300FA0FB2 /* TestAppExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3471867E18070D9300FA0FB2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 3471865C18070D9300FA0FB2 /* FirstApp */; + targetProxy = 3471867D18070D9300FA0FB2 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 3471866918070D9300FA0FB2 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3471866A18070D9300FA0FB2 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 3471868218070D9300FA0FB2 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 3471868318070D9300FA0FB2 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3471868718070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 3471868818070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3471868A18070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FirstAppExample/FirstApp-Prefix.pch"; + INFOPLIST_FILE = "$(SRCROOT)/FirstAppExample/FirstApp-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-all_load"; + PRODUCT_NAME = FirstApp; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 3471868B18070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "FirstAppExample/FirstApp-Prefix.pch"; + INFOPLIST_FILE = "$(SRCROOT)/FirstAppExample/FirstApp-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + EmmocoMobileFramework/Framework, + ); + OTHER_LDFLAGS = "-all_load"; + PRODUCT_NAME = FirstApp; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 3471868D18070D9300FA0FB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestAppExample.app/TestAppExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "TestAppExample/TestAppExample-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "TestAppExampleTests/FirstAppTests-Info.plist"; + PRODUCT_NAME = FirstAppTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 3471868E18070D9300FA0FB2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/TestAppExample.app/TestAppExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "TestAppExample/TestAppExample-Prefix.pch"; + INFOPLIST_FILE = "TestAppExampleTests/FirstAppTests-Info.plist"; + PRODUCT_NAME = FirstAppTests; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3471865818070D9300FA0FB2 /* Build configuration list for PBXProject "FirstApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868718070D9300FA0FB2 /* Debug */, + 3471868818070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3471868918070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "FirstApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868A18070D9300FA0FB2 /* Debug */, + 3471868B18070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3471868C18070D9300FA0FB2 /* Build configuration list for PBXNativeTarget "FirstAppTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3471868D18070D9300FA0FB2 /* Debug */, + 3471868E18070D9300FA0FB2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3471865518070D9300FA0FB2 /* Project object */; +} diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.h b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.h new file mode 100644 index 0000000..444b643 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.h @@ -0,0 +1,16 @@ +// +// EMAppDelegate.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; +@property (nonatomic, strong) IBOutlet UINavigationController *navController; + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.m b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.m new file mode 100644 index 0000000..05281e4 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMAppDelegate.m @@ -0,0 +1,69 @@ +// +// EMAppDelegate.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMAppDelegate.h" +#import "EMFramework.h" +#import "EMDevicePickerViewController.h" + +@interface EMAppDelegate () { +} + +@end + +@implementation EMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + UINavigationController *navController = (UINavigationController *)[[self window] rootViewController]; + [self setNavController:navController]; + [[self navController] setDelegate:self]; + + [[EMConnectionListManager sharedManager] startUpdating]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + [[EMConnectionListManager sharedManager] startUpdating]; +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +#pragma mark - Navigation Controller + +- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { + if ([viewController isKindOfClass:[EMDevicePickerViewController class]]) { + [[EMConnectionManager sharedManager] disconnectWithSuccess:^{ + + } onFail:^(NSError *error) { + + }]; + } +} + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMConnectingView.xib b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMConnectingView.xib new file mode 100644 index 0000000..7e84038 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMConnectingView.xib @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.h b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.h new file mode 100644 index 0000000..6caaba7 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.h @@ -0,0 +1,13 @@ +// +// EMDevicePickerViewController.h +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface EMDevicePickerViewController : UITableViewController + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.m b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.m new file mode 100644 index 0000000..317f27f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMDevicePickerViewController.m @@ -0,0 +1,103 @@ +// +// EMDevicePickerViewController.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import "EMDevicePickerViewController.h" +#import "EMFramework.h" +#import + +@interface EMDevicePickerViewController () + +@property (nonatomic, strong) IBOutlet UIView *connectingView; +@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *activityIndicator; +@property (nonatomic, strong) IBOutlet UIView *popoverView; + +@end + +@implementation EMDevicePickerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[NSBundle mainBundle] loadNibNamed:@"EMConnectingView" owner:self options:nil]; + [[[self popoverView] layer] setCornerRadius:10.0f]; + [[self connectingView] setHidden:YES]; + [[self connectingView] setFrame:[[self view] bounds]]; + [[self view] addSubview:[self connectingView]]; + [[EMConnectionListManager sharedManager] addObserver:self forKeyPath:@"devices" options:0 context:NULL]; +} + +-(void)_showConnectingView { + [[self activityIndicator] startAnimating]; + [[self connectingView] setHidden:NO]; +} + +-(void)_hideConnectingView { + [[self activityIndicator] stopAnimating]; + [[self connectingView] setHidden:YES]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionListManager sharedManager]) { + [[self tableView] reloadData]; + } +} + +#pragma mark - Table View Methods + +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 1; +} + +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return MAX([[[EMConnectionListManager sharedManager] devices] count], 1); +} + +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *deviceCell = [tableView dequeueReusableCellWithIdentifier:@"DeviceCell"]; + [[deviceCell detailTextLabel] setTextColor:[UIColor darkGrayColor]]; + + EMDeviceBasicDescription *description = nil; + if ([indexPath row] < [[[EMConnectionListManager sharedManager] devices] count]) { + description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + } + + if (description) { + [[deviceCell textLabel] setText:[description name]]; + [[deviceCell detailTextLabel] setText:[NSString stringWithFormat:@"Signal Strength: %0.0f", [description signalStrength]]]; + } + else { + [[deviceCell textLabel] setText:NSLocalizedString(@"Searching for devices...", @"No devices found string")]; + [[deviceCell detailTextLabel] setText:nil]; + } + + return deviceCell; +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + [self _showConnectingView]; + EMDeviceBasicDescription *description = [[[EMConnectionListManager sharedManager] devices] objectAtIndex:[indexPath row]]; + [[EMConnectionManager sharedManager] connectDevice:description onSuccess:^{ + [self _hideConnectingView]; + [self performSegueWithIdentifier:@"ConnectionSegue" sender:self]; + } onFail:^(NSError *error) { + [self _hideConnectingView]; + UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Connection Failed", @"Alert title") message:NSLocalizedString(@"An error occurred while trying to connect to the selected device", @"Alert message") delegate:nil cancelButtonTitle:NSLocalizedString(@"Close", @"Close button") otherButtonTitles:nil]; + [alert show]; + }]; +} + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.h b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.h new file mode 100644 index 0000000..bce8ada --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.h @@ -0,0 +1,11 @@ +#import + +@interface EMFirstAppViewController : UIViewController + +@property (nonatomic, strong) IBOutlet UILabel *valueLabel; +@property (nonatomic, strong) IBOutlet UISlider *valueSlider; + +-(IBAction)sliderChanged:(UISlider *)sender; +-(IBAction)sliderDidFinishChanging:(UISlider *)sender; + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.m b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.m new file mode 100644 index 0000000..e3b40fd --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/EMFirstAppViewController.m @@ -0,0 +1,75 @@ +#import "EMFirstAppViewController.h" +#import "EMFramework.h" + +@interface EMFirstAppViewController () { + IBOutlet UIActivityIndicatorView *_activityIndicator; + NSTimer *_writeTimer; +} + +@end + +@implementation EMFirstAppViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [_activityIndicator setHidden:YES]; + [self setTitle:[[[EMConnectionManager sharedManager] connectedDevice] name]]; + [[EMConnectionManager sharedManager] readResource:@"data" onSuccess:^(id readValue) { + [[self valueLabel] setText:[NSString stringWithFormat:@"%d", [readValue intValue]]]; + [[self valueSlider] setValue:[readValue floatValue]]; + } onFail:^(NSError *error) { + + }]; + + [[EMConnectionManager sharedManager] addObserver:self forKeyPath:@"connectionState" options:0 context:NULL]; +} + +-(void)dealloc { + [[EMConnectionManager sharedManager] removeObserver:self forKeyPath:@"connectionState"]; +} + +-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { + if (object == [EMConnectionManager sharedManager]) { + if ([keyPath isEqualToString:@"connectionState"]) { + if ([[EMConnectionManager sharedManager] connectionState] == EMConnectionStateDisrupted) { + [[self navigationController] popToRootViewControllerAnimated:YES]; + } + } + } +} + +#pragma mark - Interface actions + +-(IBAction)sliderChanged:(UISlider *)sender { + [[self valueLabel] setText:[NSString stringWithFormat:@"%0.0f", [sender value]]]; + if (_writeTimer) { + [_writeTimer invalidate]; + _writeTimer = nil; + } + _writeTimer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(sliderDidFinishChanging:) userInfo:nil repeats:NO]; +} + +-(IBAction)sliderDidFinishChanging:(UISlider *)sender { + [_writeTimer invalidate]; + _writeTimer = nil; + [_activityIndicator startAnimating]; + [_activityIndicator setHidden:NO]; + + [[EMConnectionManager sharedManager] writeValue:[NSNumber numberWithFloat:[[self valueSlider] value]] toResource:@"data" onSuccess:^{ + [_activityIndicator setHidden:YES]; + [_activityIndicator stopAnimating]; + } onFail:^(NSError *error) { + + }]; +} +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Info.plist b/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Info.plist new file mode 100644 index 0000000..c189583 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Prefix.pch b/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/FirstApp-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png new file mode 100644 index 0000000..db853cc --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/120 - App Icon@2x.png diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png new file mode 100644 index 0000000..3165ab3 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/29 - App Icon@2x.png diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png new file mode 100644 index 0000000..6444f2f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/40 - App Icon@2x.png diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..837c342 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "29 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "40 - App Icon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "120 - App Icon@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/MainStoryboard.storyboard b/ios-examples-13.4.9/FirstApp/FirstAppExample/MainStoryboard.storyboard new file mode 100644 index 0000000..fe030ad --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/MainStoryboard.storyboard @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/FirstApp/FirstAppExample/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/first_app.json b/ios-examples-13.4.9/FirstApp/FirstAppExample/first_app.json new file mode 100644 index 0000000..571b20e --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/first_app.json @@ -0,0 +1,204 @@ +{ + "resources": { + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "data": { + "id": 1, + "align": 2, + "attributes": {}, + "type": "i2", + "access": "rw", + "size": 2 + }, + "$activeGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 124, + 222, + 24, + 201, + 135, + 244, + 35, + 197, + 14, + 170, + 21, + 17, + 84, + 224, + 220, + 189 + ], + "toolVersion": "13.3.6.201308281515", + "name": "FirstApp", + "$$md5": "7cde18c987f423c50eaa151154e0dcbd", + "build": [ + 7, + 50, + 186, + 203, + 64, + 1, + 0, + 0 + ], + "date": "2013-08-29T15:18:32", + "maxAlign": 2, + "maxSize": 20, + "version": "1.0.0" + }, + "resourceNames": [ + "data", + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeGroup" + ], + "attributes": { + "description": "My first app", + "version": "1.0.0" + }, + "resourceNamesApp": ["data"], + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "imports": {"@emmoco.com.FirstApp": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/main.m b/ios-examples-13.4.9/FirstApp/FirstAppExample/main.m new file mode 100644 index 0000000..90afaba --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/main.m @@ -0,0 +1,18 @@ +// +// main.m +// TestAppExample +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +#import "EMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([EMAppDelegate class])); + } +} diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExample/system.json b/ios-examples-13.4.9/FirstApp/FirstAppExample/system.json new file mode 100644 index 0000000..7a27c17 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExample/system.json @@ -0,0 +1,196 @@ +{ + "resources": { + "$activeParameterGroup": { + "id": -10, + "align": 1, + "pack": 1, + "attributes": {"readwrite": true}, + "type": "E:system@emmoco.com.System/ParameterGroup", + "access": "rw", + "size": 1 + }, + "$schemaHash": { + "dim": 20, + "id": -6, + "align": 1, + "attributes": {"readonly": true}, + "type": "A20:u1", + "access": "r", + "size": 20 + }, + "$eapProtocolLevel": { + "id": -3, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mcmProtocolLevel": { + "id": -2, + "align": 2, + "attributes": {"readonly": true}, + "type": "u2", + "access": "r", + "size": 2 + }, + "$mobileRssi": { + "id": -8, + "align": 1, + "attributes": {"readonly": true}, + "type": "i1", + "access": "r", + "size": 1 + }, + "$mcmDisconnect": { + "id": -9, + "align": 1, + "attributes": {"writeonly": true}, + "type": "u1", + "access": "w", + "size": 1 + }, + "$eapBuildDate": { + "dim": 8, + "id": -4, + "align": 1, + "attributes": {"readonly": true}, + "type": "A8:u1", + "access": "r", + "size": 8 + }, + "$resourceCount": { + "id": -7, + "align": 1, + "attributes": {"readonly": true}, + "type": "S:system@emmoco.com.System/ResourceCount", + "access": "r", + "size": 2 + }, + "$fileIndexReset": { + "id": -5, + "align": 2, + "attributes": {"writeonly": true}, + "type": "i2", + "access": "w", + "size": 2 + } + }, + "resourceNamesSys": [ + "$activeParameterGroup", + "$eapBuildDate", + "$eapProtocolLevel", + "$fileIndexReset", + "$mcmDisconnect", + "$mcmProtocolLevel", + "$mobileRssi", + "$resourceCount", + "$schemaHash" + ], + "manifest": { + "protocolLevel": 13, + "hash": [ + 108, + 31, + 53, + 92, + 46, + 47, + 48, + 241, + 201, + 5, + 236, + 253, + 10, + 254, + 240, + 187 + ], + "toolVersion": "13.3.0.201307022239", + "name": "System", + "$$md5": "6c1f355c2e2f30f1c905ecfd0afef0bb", + "build": [ + 99, + 80, + 140, + 161, + 63, + 1, + 0, + 0 + ], + "date": "2013-07-02T17:41:34", + "idFormat": "BINARY4", + "maxAlign": 2, + "maxSize": 20, + "version": "13.3.0" + }, + "resourceNames": [ + "$mcmProtocolLevel", + "$eapProtocolLevel", + "$eapBuildDate", + "$fileIndexReset", + "$schemaHash", + "$resourceCount", + "$mobileRssi", + "$mcmDisconnect", + "$activeParameterGroup" + ], + "attributes": { + "description": "System resources schema", + "version": "13.3.0" + }, + "types": { + "system@emmoco.com.System/ResourceCount": { + "packed": false, + "align": 1, + "type": "S:system@emmoco.com.System/ResourceCount", + "size": 2, + "fields": [ + { + "pad": 0, + "align": 1, + "name": "app", + "type": "u1", + "size": 1 + }, + { + "pad": 0, + "align": 1, + "name": "sys", + "type": "u1", + "size": 1 + } + ] + }, + "std:i2": { + "align": 2, + "size": 2 + }, + "std:i1": { + "align": 1, + "size": 1 + }, + "std:u1": { + "align": 1, + "size": 1 + }, + "system@emmoco.com.System/ParameterGroup": { + "values": [ + "GROUP_A", + "GROUP_B" + ], + "align": 1, + "pack": 1, + "type": "E:system@emmoco.com.System/ParameterGroup", + "size": 1 + }, + "std:u2": { + "align": 2, + "size": 2 + } + }, + "resourceNamesApp": [], + "imports": {"@emmoco.com.System": true} +} \ No newline at end of file diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/FirstAppTests-Info.plist b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/FirstAppTests-Info.plist new file mode 100644 index 0000000..b906695 --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/FirstAppTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.emmoco.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/TestAppExampleTests.m b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/TestAppExampleTests.m new file mode 100644 index 0000000..334ae3f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/TestAppExampleTests.m @@ -0,0 +1,34 @@ +// +// TestAppExampleTests.m +// TestAppExampleTests +// +// Created by Dexter Weiss on 10/10/13. +// Copyright (c) 2013 Emmoco. All rights reserved. +// + +#import + +@interface TestAppExampleTests : XCTestCase + +@end + +@implementation TestAppExampleTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/en.lproj/InfoPlist.strings b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ios-examples-13.4.9/FirstApp/FirstAppExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ios-examples-13.4.9/README.md b/ios-examples-13.4.9/README.md new file mode 100644 index 0000000..34f6d2c --- /dev/null +++ b/ios-examples-13.4.9/README.md @@ -0,0 +1,55 @@ +# The Emmoco Mobile Framework iOS examples + +## Introduction + +These examples demonstrate use of Emmoco’s Mobile Framework for iOS. Each example shows a different aspect of mobile to embedded system communication. + +NOTE: BLE is no longer supported by the iOS simulator. These examples cannot be built for the i386 architecture. + +There are five examples: + +a) FirstApp - Connecting to a device and writing a value +b) Compound - Dealing with more complicated resource types +c) Indicator - Receiving notifications from the embedded system to your application +d) File - Dealing with file resources +e) Broadcast - Receiving information from embedded systems while not connected + +These examples correspond to their counterparts in the embedded system examples. + +## Before you begin + +This document and these examples assume a basic understanding of iOS, Emmoco’s embedded platform, and Bluetooth Low Energy. To successfully run these iOS examples, you will need their counterparts running on an embedded system. + +## FirstApp - The “Hello world” of mobile to embedded communication + +This example demonstrates scanning, connecting, and writing a value to an embedded system. + +Before connecting to a device, you must “discover” it through scanning. The pattern for this is demonstrated in the class `EMDevicePickerViewController`. This class observes the `devices` property on `EMConnectionListManager` and displays discovered devices in a table. When the user selects a device, this class connects to the device by interacting with `EMConnectionManager`. + +Once connected, the class `EMFirstAppViewController` demonstrates how to write values to the embedded system through an interface control. In this case, a UISlider writes a number down when its value changes. + +## Compound + +This example is similar to the FirstApp example, but demonstrates the reading and writing of a more complex data type. All resources on the embedded system correspond to Foundation objects in iOS. + +`NSNumber` - floats, integers +`NSString` - enums, strings +`NSArray` - Arrays +`NSDictionary` - Structs +`NSData` - files + +In FirstApp, we used `NSNumber` to write to a number. In this example, we’re using an `NSDictionary` to read and write structs. + +## Indicator + +Indicators are notifications that come from the embedded system up to your mobile application. The Mobile Framework delivers these events to you through `NSNotificationCenter`. The Indicator example shows you how to read and process these notifications. + +See `EMIndicatorExampleViewController` for how to do this. + +## File + +Files are often very large, requiring multiple packets to transfer them to and from the embedded system. Fortunately, the Mobile Framework handles this for you. When reading a file, you are given an `NSData` object only after the entire transfer is complete. To write a value, you hand an `NSData` object to the framework. + +## Broadcast + +This is the only example that does not ever connect to the embedded system. Instead, it pulls a resource’s value from the device’s advertise packet. See `EMBroadcastViewController` to understand how this works.