getVersion.lua

local gainer = require 'gainer'

---
-- Simple example that prints version number of firmware on gainer device.

local board = gainer.new()

local function setup()
  board:init(nil, 0) -- Firmware version can be only checked in configuration 0
  print("Firmware version: ", board:getVersion())
end

local function loop()
  os.exit() -- Just terminate the program
end

board:start(setup, loop)
generated by LDoc 1.4.7 Last updated 2018-10-30 14:36:58