Wenn ich ein Schaltkommando zu meinem Relais (welches eine Lampe schaltet) sende:
#M(E\001\001\000\r\n
antwortet es mit
!M(E\001\001\000\r\n
Das sieht man auch im Logfile:
2015.12.15 23:03:05 5: mylampe: sending command "#M(E\001\001\000\r\n"
2015.12.15 23:03:05 5: SW: 234d28450101000d0a
2015.12.15 23:03:05 5: mylampe: Spontaneously received "!"
2015.12.15 23:03:05 5: mylampe dispatch !
2015.12.15 23:03:05 5: mylampe: Spontaneously received "M(E\001\001\000\r\n"
2015.12.15 23:03:05 5: mylampe dispatch M(E
Wie kann ich nun das "Spontaneously received" zu einer Art "Reading" umwandeln?
Das log sagt "dispatch", obwohl meine Classdef Folgendes enthält.
reading 1 match "!M\(E\001\001\000\r\n"