Module TryExcept body Import alias handlers ExceptHandler type NameLoad body Print Str Expr Call NameLoad Assign NameStore Num Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad If CompareEq NameLoad Num body Print BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Global identifier Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad If CompareEq NameLoad Num body Print BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body If CompareEq NameLoad Str body Expr Call NameLoad Num If CompareEq NameLoad Str body Expr Call NameLoad Num handlers ExceptHandler type NameLoad body Print BinOpAdd BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str handlers ExceptHandler type NameLoad body Print BinOpAdd BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad BinOpDiv Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Print Str Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier TryExcept body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Num If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad body Print Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Num Num Expr Call NameLoad Str Expr Call NameLoad Num Num Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad Expr Call NameLoad Num Num Expr Call NameLoad Str If CompareEq NameLoad Num body Expr Call NameLoad Num Num Expr Call NameLoad Str If CompareEq NameLoad Num body Expr Call NameLoad Num Num Expr Call NameLoad Str Expr Call NameLoad Num Num Expr Call NameLoad Str Expr Call NameLoad Num Num Expr Call NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier Print Str Expr Call NameLoad Num Assign NameStore Num Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Print Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad Num Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Print Str Print Str While Num body Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad Num body Assign NameStore Num If CompareEq NameLoad Num body Assign NameStore Num If CompareEq NameLoad Num body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num
N/A N/A N/A N/A config N/A N/A N/A ImportError N/A N/A Please copy template-config.py to config.py and configure appropriately ! N/A N/A exit N/A debug_communication 0 N/A urllib3 N/A time N/A json N/A grovepi grove_oled * N/A sys N/A signal send_to_hcp N/A N/A http url headers value N/A N/A N/A timestamp N/A int N/A N/A time time N/A body N/A N/A N/A N/A N/A N/A {"mode":"async", "messageType":" N/A str N/A config message_type_id_From_device ", "messages":[{"sensor":"slider_device", "value":" N/A str value ", "timestamp": N/A str timestamp }]} N/A r N/A N/A http urlopen POST url body body headers headers N/A N/A debug_communication 1 N/A N/A N/A send_to_hcp(): N/A str N/A r status N/A N/A r data N/A poll_from_hcp N/A N/A http url headers N/A N/A N/A msg_string N/A r N/A N/A http urlopen GET url headers headers N/A N/A debug_communication 1 N/A N/A N/A poll_from_hcp(): N/A str N/A r status N/A N/A r data N/A json_string N/A N/A {"all_messages": N/A N/A N/A r data decode utf-8 } N/A N/A N/A json_string_parsed N/A N/A json loads json_string N/A N/A N/A messages_reversed N/A reversed N/A json_string_parsed N/A all_messages N/A single_message messages_reversed N/A N/A payload N/A N/A single_message N/A messages N/A 0 N/A opcode N/A payload N/A opcode N/A operand N/A payload N/A operand N/A N/A opcode display N/A N/A msg_string operand N/A N/A opcode led N/A N/A N/A operand 0 N/A N/A N/A switch_led 0 N/A N/A operand 1 N/A N/A N/A switch_led 1 N/A N/A N/A TypeError N/A N/A N/A N/A Problem decoding the message  N/A N/A N/A r data decode utf-8  retrieved with poll_from_hcp()! Can and will continue though. N/A N/A N/A ValueError N/A N/A N/A N/A Problem decoding the message  N/A N/A N/A r data decode utf-8  retrieved with poll_from_hcp()! Can and will continue though. N/A read_slider_value N/A N/A slider old_value N/A N/A N/A N/A N/A slider_value N/A int N/A N/A N/A grovepi analogRead slider 10.23 N/A N/A N/A IOError N/A N/A IOError communicating with HW - can and will continue though. N/A slider_value old_value N/A slider_value N/A switch_led N/A N/A arg N/A N/A N/A led N/A N/A N/A N/A arg 0 N/A N/A N/A N/A grovepi digitalWrite led 1 N/A N/A arg 1 N/A N/A N/A N/A grovepi digitalWrite led 0 N/A N/A N/A IOError N/A N/A IOError communicating with HW - can and will continue though. N/A redraw_oled N/A N/A value do_send msg_string N/A N/A N/A N/A oled_setTextXY 1 0 N/A N/A oled_putString N/A N/A oled_setTextXY 1 0 N/A N/A oled_putString N/A Value: N/A str value N/A N/A oled_setTextXY 2 0 N/A N/A oled_putString N/A N/A do_send 0 N/A N/A N/A oled_setTextXY 2 0 N/A N/A oled_putString Not sending! N/A N/A do_send 1 N/A N/A N/A oled_setTextXY 2 0 N/A N/A oled_putString Sending! N/A N/A oled_setTextXY 4 0 N/A N/A oled_putString N/A N/A oled_setTextXY 4 0 N/A N/A oled_putString N/A msg_string N/A 12 N/A signal_handler N/A N/A signal frame N/A N/A N/A slider_value N/A You pressed Ctrl+C! N/A N/A switch_led 0 N/A do_send 0 N/A msg_string Stopped! N/A N/A redraw_oled slider_value do_send msg_string N/A N/A N/A sys exit 0 N/A N/A N/A N/A signal signal N/A signal SIGINT signal_handler N/A N/A N/A N/A N/A urllib3 disable_warnings N/A N/A N/A N/A urllib3.disable_warnings() failed - get a recent enough urllib3 version to avoid potential InsecureRequestWarning warnings! Can and will continue though. N/A N/A N/A config proxy_url N/A N/A http N/A N/A urllib3 PoolManager N/A N/A http N/A N/A urllib3 proxy_from_url N/A config proxy_url N/A url N/A N/A N/A N/A https://iotmms N/A config hcp_account_id N/A config hcp_landscape_host /com.sap.iotservices.mms/v1/api/http/data/ N/A str N/A config device_id N/A headers N/A N/A N/A urllib3 util make_headers user_agent None N/A N/A headers N/A Authorization N/A Bearer  N/A config oauth_credentials_for_device N/A N/A headers N/A Content-Type application/json;charset=utf-8 N/A slider 0 N/A N/A N/A grovepi pinMode slider INPUT N/A led 4 N/A N/A N/A grovepi pinMode led OUTPUT N/A N/A switch_led 0 N/A N/A oled_init N/A N/A oled_clearDisplay N/A N/A oled_setNormalDisplay N/A N/A oled_setVerticalMode N/A do_send 0 N/A slider_value 0 N/A msg_string N/A Entering main loop now N/A Slide to 100 to start sending / to 0 to stop sending! Terminate with Ctrl+C! N/A 1 N/A N/A slider_value N/A read_slider_value slider slider_value N/A N/A slider_value 100 N/A N/A do_send 1 N/A N/A slider_value 0 N/A N/A do_send 0 N/A N/A do_send 1 N/A N/A N/A send_to_hcp http url headers slider_value N/A N/A poll_from_hcp http url headers N/A N/A redraw_oled slider_value do_send msg_string N/A N/A N/A time sleep 1