Skip to content

self._shadowSubscribeCallbackTable[srcActionName]("REQUEST TIME OUT", "timeout", srcToken) #4

@xelfer

Description

@xelfer

I'm using your SDK to send some sensor data to my IoT device shadow. It usually runs fine but the past day or two I've received this error when I re-attach my screen session:

payload: { "state" : { "reported": { "temp": "19.5", "humid": "55.3" } } }
payload: { "state" : { "reported": { "temp": "19.4", "humid": "55.2" } } }
payload: { "state" : { "reported": { "temp": "19.5", "humid": "55.3" } } }
payload: { "state" : { "reported": { "temp": "19.5", "humid": "55.3" } } }
Exception in thread Thread-6818:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 1082, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/AWSIoTPythonSDK/core/shadow/deviceShadow.py", line 203, in _timerHandler
    self._shadowSubscribeCallbackTable[srcActionName]("REQUEST TIME OUT", "timeout", srcToken)
TypeError: 'str' object is not callable

Any ideas what might be going on here?

My full source is here: https://github.com/xelfer/nickshouse/blob/master/awstemp.py

Thanks,
xelfer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions