Mercurial > ~darius > hgwebdir.cgi > ZigBee
comparison zb.py @ 3:7bf4d4265339
Pop off the packets we test with.
author | darius@inchoate.localdomain |
---|---|
date | Tue, 30 Oct 2007 21:29:00 +1030 |
parents | b5d8ec0ffd21 |
children | ed7abe6f59c2 |
comparison
equal
deleted
inserted
replaced
2:50a87dd3614d | 3:7bf4d4265339 |
---|---|
180 goodtest = ['~', '\x00', '\n', '\x83', '\x00', '\x01', '$', '\x00', '\x01', '\x00', '\x0f', '\x00', '\x0f', '8'] | 180 goodtest = ['~', '\x00', '\n', '\x83', '\x00', '\x01', '$', '\x00', '\x01', '\x00', '\x0f', '\x00', '\x0f', '8'] |
181 badtest = ['~', '\x00', '\n', '\x83', '\x00', '\x01', '$', '\x00', '\x01', '\x00', '\x0f', '\x00', '\x0e', '8'] | 181 badtest = ['~', '\x00', '\n', '\x83', '\x00', '\x01', '$', '\x00', '\x01', '\x00', '\x0f', '\x00', '\x0e', '8'] |
182 adctest = ['~', '\x00', '\x0c', '\x83', '\x00', '\x05', '$', '\x00', '\x01', '\x02', '\x0e', '\x00', '\x0e', '\x03', '\xff', '2' ] | 182 adctest = ['~', '\x00', '\x0c', '\x83', '\x00', '\x05', '$', '\x00', '\x01', '\x02', '\x0e', '\x00', '\x0e', '\x03', '\xff', '2' ] |
183 up = Packets() | 183 up = Packets() |
184 up.process(goodtest) | 184 up.process(goodtest) |
185 #up.process(badtest) | 185 up.process(badtest) |
186 p = up.pktq.pop(0) | 186 up.process(adctest) |
187 print up.pktq.pop(0) | |
188 print up.pktq.pop(0) | |
187 | 189 |