Rev 856 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 856 | Rev 857 | ||
|---|---|---|---|
| Line 84... | Line 84... | ||
| 84 | bytes += Util.bin2hex(Util.int2bin(byte).zfill(8)) + " " |
84 | bytes += Util.bin2hex(Util.int2bin(byte).zfill(8)) + " " |
| 85 | 85 | ||
| 86 | cmd = "PKT " + id + " 1 0 " + bytes |
86 | cmd = "PKT " + id + " 1 0 " + bytes |
| 87 | return cmd.strip(" ") |
87 | return cmd.strip(" ") |
| 88 | 88 | ||
| 89 | class CanNode |
89 | class CanNode: |
| 90 | HardwareId = [0,0,0,0] |
90 | HardwareId = [0,0,0,0] |
| 91 | LastOnline = 0 |
91 | LastOnline = 0 |
| 92 | Services = {} |
92 | Services = {} |
| 93 | 93 | ||
| 94 | def __init__(self, hwid): |
94 | def __init__(self, hwid): |