Sha256: f16e6abb643ce6646289321f53fd197f406bf915b6d28c92eb00d7fc5c111515

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

#! /usr/bin/ruby
# -*- coding: utf-8; mode: ruby -*-
# Function:
#   Lazurite Sub-GHz/Lazurite Pi Gateway Sample program
#   SerialMonitor.rb
require 'LazGem'

laz = LazGem::Device.new

finish_flag=0
Signal.trap(:INT){
	finish_flag=1
}

laz.device_open()

while finish_flag == 0 do
	tx = Hash["rxAddr" => 0x902b]
	tx["payload"] = "Welcome SubGHz\n"
	begin
		laz.write(tx)
	rescue LAZURITE_ERROR
	end
end

laz.device_close()


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
LazGem-0.0.4 sample/sample_tx.rb
LazGem-0.0.3 sample/sample_tx.rb