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

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Jan 8, 2020
1 parent da52a74 commit ab50c3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/andromeda/araserver/Run.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import java.net.URL
import java.sql.SQLException
import java.util.*

object Run : NanoHTTPD(8080) {
object Run : NanoHTTPD(80) {
private var keyWord: KeyWord? = null
private var model: ParserModel? = null
private var parser: Parser? = null
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/andromeda/araserver/iot/TypeClassMap.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class TypeClassMap {
return map[type] as Class<Any>? ?: error("")
}
fun DeafaultVals(main:String): Any? {
val map = mapOf(DeviceConst.LIGHT to LightStatusModel(false, 0, 0), DeviceConst.TEMP to TempModel(30,
val map = mapOf(DeviceConst.LIGHT to LightStatusModel(false, 0, 0), DeviceConst.TEMP to TempModel(
temp = 30,
ac = false,
heat = false
))
Expand Down

0 comments on commit ab50c3c

Please sign in to comment.