#sailfishos-push log for Sunday, 2014-08-03

* tbr curses iphb15:46
tbrI can't seem to be able to wrap my head around it properly15:49
kimmolitbr iphb ? it was tricky, but i did monkey my logic from tanghus kitchentimer19:28
tbrthe problem is with mosquitto's architecture19:30
tbrit's not very well suited for this. so I need to wrap my head around that19:30
tbriphb usage is quite simple once you wrap your head around it.19:30
kimmoliok, bubblewrap around head then :p19:33
tbrbut yeah, IPHB documentation is basically not-existant. The best you get is the header file and the test2.c19:35
kimmoliyep. and then some guesswork...19:35
kimmolibut in the end it works fine now inside toholed19:35
kimmolii wake up the phone every 30sec, but it seems to have no effect on battery19:36
tbryeah for you it's easier, you can just use the global 30s define19:36
kimmoliNo 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
tbrhehe19:39
tbrI'm still not sure if I should use a local mosquitto server or try to architecture a dbus proxy19:39
tbrdbus proxy would be "nicer" I guess19:40
kimmolii think so19:40
tbrbtw: I'm pondering to make a python iphb binding ;)19:40
kimmolibut your problem is now that you dont receive subscribed topics?19:40
kimmolipyh-ton ... was not my thing afterall19:41
tbrI hacked mosquitto and it now has a max 10s latency, even if the device sleeps19:42
kimmoliok19:44
tbrone thing that I'm kind of still trying to figure out how to NOT block if the device isn't sleeping.19:46
kimmoliah19:53
tbras 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 though20:02
kimmoliok. 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 iphb20:07
tbrand that's a common main loop: do_stuff(); poll(list_of_fds,sleep-timeout)20:08
kimmolisomething more comlicated , poll is in a thread of its own...20:09
kimmoliwhy it is if i take more that 2-3 beers during day, i have hangover-headache in the evening20:12

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!