PDA

View Full Version : viewing a peek value


Don Tyszko
09-11-2009, 10:42 AM
With SNAP 2.2.12 we have encountered difficulty in viewing the results of the peek function. One of the techniques that was tried:

valtest = 0x00
valtest = ord(peek(0x26))
print chr(valtest)

Out the serial port is output "None"

The same result occurs if the print statement is changed to
print valtest

Your help would be greatly appreciated.

kbanks
09-11-2009, 02:29 PM
Try it like this

valtest = peek(0x26)
print valtest