Rikke
04/17/2023, 10:00 AMsignal_strength -> float?:
from cellular package cellular/src/base/base.toit
line 119 does exactly what I want.
My problem is I can't find a way to get the value from the monarch container, and use it in a different container.
In the cellular/src/base/service.toit
file I can call the function using driver.signal_strength
and get the value I expect. But I can only print it out on serial log.
I've tried to save the service when opening the network, but this is CellularServiceClient
and I need CellularServiceProvider
.
Have I missed the simple way of getting the signal strength from modem, or is it supposed to be difficult to get hands on the uart connected to modem?kasperl
04/17/2023, 10:26 AMRikke
04/17/2023, 10:30 AMRikke
04/17/2023, 10:31 AMRikke
05/10/2023, 7:41 AMkasperl
05/12/2023, 5:25 AMRikke
05/12/2023, 6:14 AMkasperl
05/12/2023, 6:17 AMRikke
05/12/2023, 6:19 AMkasperl
05/12/2023, 6:20 AMRikke
05/12/2023, 6:20 AMAT+CGSN=1
giving us OK and the IMEI itself. Ive tested it and we can easily print it in the cellular/internet service.
It would be amazing if we could get info on connection closed yesRikke
05/12/2023, 6:21 AMRikke
05/24/2023, 10:46 AMkasperl
05/25/2023, 9:45 AMRikke
05/25/2023, 11:26 AMkasperl
05/25/2023, 12:14 PMRikke
05/25/2023, 1:55 PMRikke
06/06/2023, 12:29 PMspawn
now, because this gives us the opportunity to use wifi or cellular. We were unable to open wifi before, because we use the generic net.open
calls etc to match our preferred internet connection type. I haven't found any problems with spawning yet, but perhaps I will find some soon 😄 I hope the API work is going well, I know you guys have much on your plate right nowRikke
06/22/2023, 10:28 AMkasperl
06/24/2023, 11:26 AMkasperl
06/26/2023, 9:32 AMkasperl
06/26/2023, 9:33 AMimport cellular.signal
main:
quality := signal.quality
print "power = $quality.power"
kasperl
06/26/2023, 11:55 AMRikke
06/26/2023, 3:33 PM