Mister_Magister | piggz[m]: mind explaining to me how to use qble | 09:08 |
---|---|---|
piggz[m] | <Mister_Magister> "piggz: mind explaining to me how..." <- i can try, just kinda subclass everything, pass in the required params, whichbare the service uuid's, and call methods, connect events... | 09:32 |
Mister_Magister | piggz[m]: uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh | 09:33 |
piggz[m] | Best example is amazfish, look at a simpler 'device' in there, like the banglejs code | 09:33 |
Mister_Magister | yeah but amazfish is bit complicated (im reading it) | 09:33 |
Mister_Magister | piggz[m]: first thing i'm bit confused about, taking amazfish as example, there's pair menu in the app, is it necessary? | 09:33 |
Mister_Magister | or is it just nice-to-have | 09:34 |
piggz[m] | Yeah, i get that, so, im focussing you on a simpler part :) | 09:34 |
piggz[m] | If you can connect without pait, it might not be needed..... Is the device visible to bluez? | 09:35 |
piggz[m] | *pair | 09:35 |
Mister_Magister | piggz[m]: yeap its paired in normal settings, although it needs code to pair and official app displays it so maybe there's some magic sauce to pair it | 09:35 |
Mister_Magister | but its paired in bluez | 09:35 |
Mister_Magister | visible in settings and it can connect and stuff | 09:36 |
piggz[m] | You can probably skip that then | 09:36 |
Mister_Magister | alright so i uhh need to get list of adapters from bluez to get correct uuid and then i can just add service and talk to it? | 09:36 |
piggz[m] | Its all ontop of bluez, so you can do things externally | 09:36 |
Mister_Magister | is my thinking roughly correct? lol | 09:37 |
piggz[m] | To create the device, its the bluez path, which is the adapter + dev_(mac) ish | 09:38 |
piggz[m] | Yeah, pretty much correct | 09:38 |
Mister_Magister | So i'll first snatch this https://github.com/piggz/harbour-amazfish/blob/9a7d2ceac381003b0395e4c61165f83320e3c970/daemon/src/devices/asteroidosdevice.cpp#L128 | 09:38 |
Mister_Magister | and then i should have service? | 09:39 |
Mister_Magister | idk how device is uhh made | 09:39 |
piggz[m] | Yeag, create a device, connect, wait for services to be resolved, then parse the sercices xml, and create all your services | 09:40 |
Mister_Magister | https://github.com/piggz/harbour-amazfish/blob/9a7d2ceac381003b0395e4c61165f83320e3c970/daemon/src/deviceinterface.cpp#L35 | 09:41 |
Mister_Magister | this | 09:41 |
Mister_Magister | it's quite… complicated | 09:41 |
piggz[m] | Ignore deviceinterface, thats the glue between my ui and daemon | 09:42 |
piggz[m] | Nothibg to do with talking to the hw | 09:42 |
Mister_Magister | well that's not confusing at all :) | 09:43 |
Mister_Magister | so how do i go about the device | 09:44 |
piggz[m] | Look at abstractdevice.h | 09:45 |
piggz[m] | also, devicefactory | 09:45 |
Mister_Magister | piggz[m]: yeah but that doesn't tell me how to use it | 09:53 |
Mister_Magister | they're used only in the deviceinterface | 09:53 |
piggz[m] | Ok, yeah, theyre created in the device interface, but ignore everything else about registering dbus etc | 10:06 |
Mister_Magister | mmm okay | 10:11 |
Mister_Magister | piggz[m]: so i got it almost all sorted but the device is not firing propertiesChanged. Do i have to do something other than connectToDevice()? | 13:13 |
Mister_Magister | i basically just create device, set path, connectToDevice | 13:13 |
Mister_Magister | guess I had to wait | 13:23 |
piggz[m] | So, it connect eventually? | 13:26 |
Mister_Magister | piggz[m]: i think so | 13:40 |
Mister_Magister | not sure xd | 13:40 |
Mister_Magister | piggz[m]: if you have a second do you mind having a look if i did something obviously wrong? (the app works) | 14:14 |
Mister_Magister | https://github.com/Michal-Szczepaniak/decibici/tree/master/src | 14:15 |
askolsam | Well this is weird. I rebooted my Xperia 10 III because mobile certificate (mobiilivarmenne) was (again) not working. But after the reboot signal (android version) no longer works; it closes as soon as it tries to start. Tried rebooting the phone but issue remains. Now, my skills regarding anything android or Sailfish appsupport are sketchy at best, but I've managed to access the lxc-container and | 16:32 |
askolsam | used 'logcat': https://dpaste.org/23w4q | 16:32 |
askolsam | That fatal exception happens when I try to start signal. If "Failed to mount /mnt/appfuse/10036_1: Permission denied" the real culprit and not a red herring, I have no clue where to go from here. | 16:34 |
askolsam | Oh, and everytime I tried to start the app, a new directory was created to /mnt/appfuse/ (10036_1, 10036_2, 10036_3, ...) | 16:36 |
piggz[m] | Mister_Magister: looks good .. quite the simple service there! | 16:37 |
Mister_Magister | piggz[m]: yeap | 18:17 |
Mister_Magister | piggz[m]: it can be expanded to support full functionality but i can't be arsed | 18:17 |
*** phlixi is now known as Guest16319 | 21:57 | |
*** phlixi_ is now known as phlixi | 21:57 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!