I am trying to write a drive for an Elk M1 and I am not a code writer. Yesterday I had communiciation between the hub and the Elk M1 but this morning the hub was locked up. There was no longer communication between the two and see the error message below. Thanks for any insight.
Here is the script:
def initialize() {
telnetClose()
try {
//open telnet connection
telnetConnect([termChars:[13,10]], ip, port, null, null)
//give it a chance to start
pauseExecution(1000)
ifDebug("Telnet connection to Elk M1 established")
//poll()
} catch(e) {
log.warn "initialize error: ${e.message}"
}
}
dev:3572019-02-14 09:52:10.604 am warninitialize error: No signature of method: dev15501557419631497399442.telnetConnect() is applicable for argument types: (java.util.LinkedHashMap, java.lang.String, java.lang.String, null, null) values: [[termChars:[13, 10]], 192.168.1.55, 2101, null, null]
Well as you may have seen I borrowed that code from your great work, lol! I saw on another post that you mentioned it (envisalink) not using that piece of code and that it uses perhaps login credential code. Well I may have deleted that but for some reason it was still working so maybe it was cached or something I will check when I get home.
Ayyyyyy what do we have here? That’s just what I needed! Thanks for sharing this.
Also—I haven’t experienced any telnet issues either on 2.0.5/2.0.6 (aside from what seemed to be like a memory leak from creating too many connections, but now that I know there’s a close method, I can test that theory!)
Happened twice last week and not since. I saw Lutron, Hue and Envisalink Integration all throw connection lost errors (and many other exceptions) and then the hub froze.
Don’t know if hub locking up was the cause or effect. I didn’t find much else in the logs so I’ve assumed Telnet was the cause. I believe that’s been the source of trouble before.
Been stable ever since the occurrences about a week ago.