Sha256: 81030306022008b243cc5bb506101ab0c6015e8e9939dd93f5e2c624274e49d8

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

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

laz = LazGem::Device.new

#laz.open(ch=10)
#laz.open()
##laz.open(ch=24)

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"
	laz.write(tx)
end

laz.device_close()


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
LazGem-0.0.2 sample/sample_tx.rb
LazGem-0.0.1 sample/sample_tx.rb