What steps will reproduce the problem?
1. Use rfcat in research mode and call d.getMACthreshold():
# ./rfcat -r
CC1111
'RfCat, the greatest thing since Frequency Hopping!'
Research Mode: enjoy the raw power of rflib
currently your environment has an object called "d" for dongle. this is how
you interact with the rfcat dongle:
>>> d.ping()
>>> d.setFreq(433000000)
>>> d.setMdmModulation(MOD_ASK_OOK)
>>> d.makePktFLEN(250)
>>> d.RFxmit("HALLO")
>>> d.RFrecv()
>>> print d.reprRadioConfig()
In [1]: print d.getMACthreshold()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/root/rfcat/rflib/__init__.pyc in <module>()
----> 1 print d.getMACthreshold()
/root/rfcat/rflib/chipcon_nic.pyc in getMACthreshold(self)
364
365 def getMACthreshold(self):
--> 366 return self.send(APP_NIC, FHSS_SET_MAC_THRESHOLD,
struct.pack("<I",value))
367
368 def setMACthreshold(self, value):
NameError: global name 'value' is not defined
What version of the product are you using? On what operating system?
Using Linux, current Mercurial sources.
Please provide any additional information below.
None.
Original issue reported on code.google.com by jwri...@hasborg.com on 16 Aug 2014 at 8:41
Original issue reported on code.google.com by
jwri...@hasborg.com
on 16 Aug 2014 at 8:41