Progress of mruby/c library for Wio LTE Arduino

Project, TechArduino, Embedded, English, mruby/c, Ruby, Wio LTE

I confirmed basic functionalities of mruby/c library for Wio LTE Arduino.
After implementing a glue code for a RTC module, I can start implement my GPS tracker application by mruby/c.

Latest source code is here.
https://github.com/kishima/libmrubycForWioLTEArduino

I think I miss consideration about memory management in C extensions. I need to double check.

Sample 1 : HTTP Get

I’m using a SORACOM Air SIM card with Wio LTE.
https://soracom.jp/services/air/

sleep(1)

Wio.init
Wio.power_supply_LTE(true)
Wio.turnon_or_reset

# this is common setting of SORACOM Air SIM card
Wio.activate("soracom.io", "sora", "sora")

url = "http://**********.com"

response = Wio.http_get(url)
puts response

while true
    sleep(1)
end

Sample 2 : Read GPS NMEA string via UART

I’m using an u-blox NEO-6M module. This can be connected to any major micro controller via UART line.
http://www.aitendo.com/product/10255

Wio.power_supply_grove(true)
sleep(1)
Serial.begin(9600)
sleep(1)

while true
  line = Serial.readline
  puts line if line != false && line != nil
  Arduino.delay(10) if line == false || line == nil
end

Result: (some strings are modified because of security reason)

$GPRMC,102710.00,A,1111.85586,N,11111.44992,E,0.284,,070118,,,A*79
$GPVTG,,T,,M,0.284,N,0.526,K,A*2C
$GPGGA,102710.00,1111.85586,N,11111.44992,E,1,06,2.28,34.3,M,39.3,M,,*60
$GPGSA,A,3,31,26,16,14,27,32,,,,,,,4.40,2.28,3.77*09
$GPGSV,3,1,10,04,63,012,21,14,36,189,17,16,47,284,27,21,26,113,21*75
$GPGSV,3,2,10,23,22,310,,26,66,335,36,27,26,210,16,29,28,043,*7D
$GPGSV,3,3,10,31,66,097,14,32,12,173,30*75
$GPGLL,1111.85586,N,11111.44992,E,102710.00,A,A*66