![]() |
Question about ofono and a chat app - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127) +--- Thread: Question about ofono and a chat app (/showthread.php?tid=8722) |
Question about ofono and a chat app - FutureBucket - 01-07-2020 Hey guys, I'm not sure where to post this so I thought I'd start here. Long story short, I'm wondering if anyone can make any suggestions on how to interact with ofono using C. I see some notes here for python using D-Bus and I'm wondering if I should also use d-bus in C or if there's a more low level api or something????? I should look at? Long story long, I've always wanted to learn C and I've been on and off learning it for quite awhile. I've never had a good project to work on to keep me interested and so I've never stuck with it for very long. My goal here is to write a simple CLI chat app in C for the PinePhone. I know there are lots of ways I can do this and I'm sure python is the best tool for this but I need a good reason to learn C and I feel like this is a good start. Thanks! -FutureBucket RE: Question about ofono and a chat app - Dmytro - 01-08-2020 For a simple CLI chat app you don't need ofono. I would suggest to use standard network interface or some http client aka curl. RE: Question about ofono and a chat app - MartijnBraam - 01-10-2020 If you want to interact with ofono you have to use dbus If you want to write a chat application that uses SMS for learning C you can just skip ofono and talk to the modem directly over the serial port. not something that's production ready but great for learning. RE: Question about ofono and a chat app - FutureBucket - 01-11-2020 (01-10-2020, 05:38 PM)MartijnBraam Wrote: If you want to interact with ofono you have to use dbus Ah, I see, This is what I am looking for. Thank you!! I had the wrong idea but at least now I have my starting point. I believe I can look at ofono code too so I have sort of a cheat sheet. Thanks! |