* tbr curses iphb | 15:46 | |
tbr | I can't seem to be able to wrap my head around it properly | 15:49 |
---|---|---|
kimmoli | tbr iphb ? it was tricky, but i did monkey my logic from tanghus kitchentimer | 19:28 |
tbr | the problem is with mosquitto's architecture | 19:30 |
tbr | it's not very well suited for this. so I need to wrap my head around that | 19:30 |
tbr | iphb usage is quite simple once you wrap your head around it. | 19:30 |
kimmoli | ok, bubblewrap around head then :p | 19:33 |
tbr | but yeah, IPHB documentation is basically not-existant. The best you get is the header file and the test2.c | 19:35 |
kimmoli | yep. and then some guesswork... | 19:35 |
kimmoli | but in the end it works fine now inside toholed | 19:35 |
kimmoli | i wake up the phone every 30sec, but it seems to have no effect on battery | 19:36 |
tbr | yeah for you it's easier, you can just use the global 30s define | 19:36 |
kimmoli | No toholed attachedn/no daemon running 22 hours 100>89 %, daemon running, oled screen off by proximity same time 100->92 % (so by this test it did improve it :) ) | 19:37 |
tbr | hehe | 19:39 |
tbr | I'm still not sure if I should use a local mosquitto server or try to architecture a dbus proxy | 19:39 |
tbr | dbus proxy would be "nicer" I guess | 19:40 |
kimmoli | i think so | 19:40 |
tbr | btw: I'm pondering to make a python iphb binding ;) | 19:40 |
kimmoli | but your problem is now that you dont receive subscribed topics? | 19:40 |
kimmoli | pyh-ton ... was not my thing afterall | 19:41 |
tbr | I hacked mosquitto and it now has a max 10s latency, even if the device sleeps | 19:42 |
kimmoli | ok | 19:44 |
tbr | one thing that I'm kind of still trying to figure out how to NOT block if the device isn't sleeping. | 19:46 |
kimmoli | ah | 19:53 |
tbr | as long as you can reduce yourself to poll/select() of a set of file-descriptors (including the iphb one) I can see how to make this work though | 20:02 |
kimmoli | ok. i actually used toholed gpio interrupt with actual poll() .revenets stuff, but i think i could use QSocketNotifier for that too (?) as i now use for iphb | 20:07 |
tbr | and that's a common main loop: do_stuff(); poll(list_of_fds,sleep-timeout) | 20:08 |
kimmoli | something more comlicated , poll is in a thread of its own... | 20:09 |
kimmoli | why it is if i take more that 2-3 beers during day, i have hangover-headache in the evening | 20:12 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!