Skip to content

Commit 9d07778

Browse files
committed
remove mqtt
1 parent 538a066 commit 9d07778

File tree

117 files changed

+812
-27335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+812
-27335
lines changed

AmazonFreeRTOS.podspec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ Pod::Spec.new do |s|
1212
s.source_files = "AmazonFreeRTOS/**/*.{swift,m,h}"
1313
s.requires_arc = true
1414
s.frameworks = "CoreBluetooth"
15-
s.dependency "AWSMobileClient"
16-
s.dependency "AWSIoT"
17-
s.dependency "CBORSwift"
1815
end

AmazonFreeRTOS.xcodeproj/project.pbxproj

Lines changed: 33 additions & 56 deletions
Large diffs are not rendered by default.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1020"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D2BEF735E09D00E457FB4EBEFBA6335C"
18+
BuildableName = "AmazonFreeRTOS.framework"
19+
BlueprintName = "AmazonFreeRTOS"
20+
ReferencedContainer = "container:AmazonFreeRTOS.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "678FA8B61E15427EB91089B7F4B67480"
36+
BuildableName = "AmazonFreeRTOSTests.xctest"
37+
BlueprintName = "AmazonFreeRTOSTests"
38+
ReferencedContainer = "container:AmazonFreeRTOS.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "D2BEF735E09D00E457FB4EBEFBA6335C"
46+
BuildableName = "AmazonFreeRTOS.framework"
47+
BlueprintName = "AmazonFreeRTOS"
48+
ReferencedContainer = "container:AmazonFreeRTOS.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
51+
<AdditionalOptions>
52+
</AdditionalOptions>
53+
</TestAction>
54+
<LaunchAction
55+
buildConfiguration = "Debug"
56+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
57+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58+
launchStyle = "0"
59+
useCustomWorkingDirectory = "NO"
60+
ignoresPersistentStateOnLaunch = "NO"
61+
debugDocumentVersioning = "YES"
62+
debugServiceExtension = "internal"
63+
allowLocationSimulation = "YES">
64+
<MacroExpansion>
65+
<BuildableReference
66+
BuildableIdentifier = "primary"
67+
BlueprintIdentifier = "D2BEF735E09D00E457FB4EBEFBA6335C"
68+
BuildableName = "AmazonFreeRTOS.framework"
69+
BlueprintName = "AmazonFreeRTOS"
70+
ReferencedContainer = "container:AmazonFreeRTOS.xcodeproj">
71+
</BuildableReference>
72+
</MacroExpansion>
73+
<AdditionalOptions>
74+
</AdditionalOptions>
75+
</LaunchAction>
76+
<ProfileAction
77+
buildConfiguration = "Release"
78+
shouldUseLaunchSchemeArgsEnv = "YES"
79+
savedToolIdentifier = ""
80+
useCustomWorkingDirectory = "NO"
81+
debugDocumentVersioning = "YES">
82+
<MacroExpansion>
83+
<BuildableReference
84+
BuildableIdentifier = "primary"
85+
BlueprintIdentifier = "D2BEF735E09D00E457FB4EBEFBA6335C"
86+
BuildableName = "AmazonFreeRTOS.framework"
87+
BlueprintName = "AmazonFreeRTOS"
88+
ReferencedContainer = "container:AmazonFreeRTOS.xcodeproj">
89+
</BuildableReference>
90+
</MacroExpansion>
91+
</ProfileAction>
92+
<AnalyzeAction
93+
buildConfiguration = "Debug">
94+
</AnalyzeAction>
95+
<ArchiveAction
96+
buildConfiguration = "Release"
97+
revealArchiveInOrganizer = "YES">
98+
</ArchiveAction>
99+
</Scheme>

AmazonFreeRTOS/AmazonFreeRTOSConstants.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import CoreBluetooth
44
public struct AmazonFreeRTOSGattService {
55
/// Device Info Service. This is a required service for Amazon FreeRTOS.
66
static let DeviceInfo = CBUUID(string: "8a7f1168-48af-4efb-83b5-e679f932ff00")
7-
/// Mqtt Proxy Service.
8-
static let MqttProxy = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff00")
97
/// Network Config Service.
108
static let NetworkConfig = CBUUID(string: "3113a187-4b9f-4f9a-aa83-c614e11bff00")
119
}
@@ -19,17 +17,6 @@ public struct AmazonFreeRTOSGattCharacteristic {
1917
/// The mtu of the device.
2018
static let Mtu = CBUUID(string: "8a7f1168-48af-4efb-83b5-e679f932ff03")
2119

22-
/// Used to control mqtt proxying.
23-
static let Control = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff01")
24-
/// Used for transfer mqtt messages.
25-
static let TXMessage = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff02")
26-
/// Used for transfer mqtt messages.
27-
static let RXMessage = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff03")
28-
/// Used for large object transfer.
29-
static let TXLargeMessage = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff04")
30-
/// Used for large object transfer.
31-
static let RXLargeMessage = CBUUID(string: "a9d7166a-d72e-40a9-a002-48044cc3ff05")
32-
3320
/// List saved and scanned wifi networks.
3421
static let ListNetwork = CBUUID(string: "3113a187-4b9f-4f9a-aa83-c614e11bff01")
3522
/// Save wifi network.
Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,3 @@
1-
/// Mqtt proxy state.
2-
public enum MqttProxyState: Int {
3-
/// Mqtt proxy off.
4-
case off = 0
5-
/// Mqtt proxy on.
6-
case on = 1
7-
}
8-
9-
/// Mqtt message types. Reference: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718021
10-
public enum MqttMessageType: Int {
11-
/// Connect.
12-
case connect = 1
13-
/// Connack.
14-
case connack = 2
15-
/// Publish.
16-
case publish = 3
17-
/// Puback.
18-
case puback = 4
19-
/// Not supported by AWS IoT.
20-
case pubrec = 5
21-
/// Not supported by AWS IoT.
22-
case pubrel = 6
23-
/// Not supported by AWS IoT.
24-
case pubcomp = 7
25-
/// Subscribe.
26-
case subscribe = 8
27-
/// Suback.
28-
case suback = 9
29-
/// Unsubscribe.
30-
case unsubscribe = 10
31-
/// Unsuback.
32-
case unsuback = 11
33-
/// Not supported by AWS IoT.
34-
case pingreq = 12
35-
/// Not supported by AWS IoT.
36-
case pingresp = 13
37-
/// Disconnnect.
38-
case disconnnect = 14
39-
}
40-
411
/// Network security types.
422
public enum NetworkSecurityType: Int {
433
/// Open.
@@ -66,14 +26,8 @@ public enum NetworkOpStatus: Int {
6626

6727
/// Keys for cbor.
6828
public enum CborKey: String {
69-
/// brokerEndpoint.
70-
case brokerEndpoint = "a"
7129
/// bssid.
7230
case bssid = "b"
73-
/// cleanSession.
74-
case cleanSession = "c"
75-
/// clientID.
76-
case clientID = "d"
7731
/// connected.
7832
case connected = "e"
7933
/// hidden.
@@ -82,20 +36,10 @@ public enum CborKey: String {
8236
case index = "g"
8337
/// maxNetworks.
8438
case maxNetworks = "h"
85-
/// msgID.
86-
case msgID = "i"
8739
/// newIndex.
8840
case newIndex = "j"
89-
/// payload.
90-
case payload = "k"
91-
/// proxyState.
92-
case proxyState = "l"
9341
/// psk.
9442
case psk = "m"
95-
/// qoS.
96-
case qoS = "n"
97-
/// qoSs.
98-
case qoSs = "o"
9943
/// rssi.
10044
case rssi = "p"
10145
/// security.
@@ -106,12 +50,6 @@ public enum CborKey: String {
10650
case status = "s"
10751
/// timeout.
10852
case timeout = "t"
109-
/// topic.
110-
case topic = "u"
111-
/// topics.
112-
case topics = "v"
113-
/// type.
114-
case type = "w"
11553
/// connect.
11654
case connect = "y"
11755
}

0 commit comments

Comments
 (0)