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

Commit

Permalink
migration to new db config
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 6, 2020
1 parent 2773ae4 commit 3da7efe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/com/andromeda/araserver/iot/ListDevices.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.andromeda.araserver.iot

class ListDevices {
fun main(url:String){
val db = DevicesDB()
val mainVal = url.replace("/devicelist/", "")
val actions = mainVal.split("&")
val dbLink = System.getenv("IOTDB")
var key:String? = null
for (i in actions) when {
i.startsWith("user=") -> key = i.replace("user=", "")
}
}
}

0 comments on commit 3da7efe

Please sign in to comment.