l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e l o o k h e r e
Note
first attentione to the servo limits line 72. make sure you dont crash into sth the servo will move on boot
second your wlan password is stored in plain text in settings.toml so there is a chance someone extracts it via an to me unknown exploit
hi, thought i wirte some more since the together copy pasted stuff aboveus is zero readable ..and my comments dont help either
so setup just provide wlan ssid = "youre reading the pw"
and pw = "youre reading the pw"
plus broker adress = "mqtt.broker"
, port = "tcp port"
and topic = "/chanell"
in the settings.toml each in a new line. reset, watch the white light while it connects and done.
then just press boot to send it. each press is queued so hit it until the mqtt server rate limits, the script shits itself, the servo blows up, your hand hurts etc etc
flashing red ..amazing you broke it ..now either try a reset à la fix your shit yourself ..or message me ..or presuming both didnt help.. connect it to your laptop ls /dev/ttyACM*
, lists connected serial port addresses, then screen /dev/tty.ACM0
, replace ACM0
with your address, connects you to the serial console alias repl ..doesnt work see link below.
okok this is the cool part. wait until the error occurs again. yes there is no logging.. since you no send me traceback.. me no fix shit.. ez.. zero valid github issues. ..when you finally got the error copy paste and I fix it ..probably
other states solid white - connecting or sending, pulsing white - sending until buffer done, flashing white - looping connection, flashing red - hard fault, green flash - sth good, light off - running quietly
find directions how to connect to serial consol alias repl here
find circuitpython for your board here here
find adafruit libraries here
cool brwoser mqtt client for debugging here
possibly helpfull in case of error here, here, here
buffer presses - you go smash smash smash smash mqtt go brrrrrr servo go eehhhh eehhh eehh eehh eeeh eeh eeeh - done
missed presses - fixed until proven otherwise - done
no real logging - last self recovered error is pushed this is quite useless - done
improve response times - perhaps cancle tasks but this perhaps doesnt even help
no qos >0 or spamming until seen to avoid spamming broker - or propose better solution
separate send into peer topics - benefit cleaner sessions disadvantage little more effort - perhaps some time
remote interactive debug topic - very risky likely not good
let other see when received or finger reset - perhaps with a display or telephone ping
finger animations - lift speed control or add rotation or wiggle - perhaps some time
presence detection - only lift when recipient sees it - perhaps with mmwave or pir
group or multi peer lifts - requires interface like eg a display
switch to ssl - likely good but takes effort