Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
working on IOT
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Dec 22, 2019
1 parent c9429ef commit d09af06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/com/andromeda/araserver/iot/DeviceConst.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.andromeda.araserver.iot

object DeviceConst {
const val LIGHTINT = 0
const val LIGHTSTRING = "LIGHT"
}
2 changes: 1 addition & 1 deletion src/main/java/com/andromeda/araserver/iot/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Main {
}
}
val devices = id?.let { GetDevices().main(client, it) }
if (devices?.size!! > 1) throw SecurityException("to may results for a valid request")
if (devices?.size!! != 1) throw SecurityException("to may results for a valid request")
val device = devices[0]

}
Expand Down

0 comments on commit d09af06

Please sign in to comment.