beautypg.com

ClearOne Writing StreamNet User Manual

Page 62

background image

Writing StreamNet Device Drivers

D-10

All specifications subject to change without notification. All rights reserved. Copyright © 2005 NetStreams

Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496

3600 W. Parmer Lane, Suite 100; Austin, TX 78727 /

www.netstreams.com.

local AsciiMessage = "W 1 3 3%0D"

WriteMessage(AsciiMessage)

-- if we are a V1 we need to update the frequency

if( false == bIsV2 ) then

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_prev(command)

-- Diego Alfarache

-- 09-20-2006

-- Receive and process #PREV commands

function handle_prev(command)

if( command == nil ) then

return

end

local AsciiMessage = "W 1 3 4%0D"

WriteMessage(AsciiMessage)

-- if we are a V1 we need to update the frequency

if( false == bIsV2 ) then

nRefreshFreqTimeout = 0

RefreshFrequency()

end

end

-- function handle_band(command)

-- Diego Alfarache

-- 09-20-2006

-- Receive and process #BAND commands

function handle_band(command)

if( command == nil ) then

return

end

local AsciiMessage = ""

if( command.params[1] == "a" or command.params[1] == "A" ) then

AsciiMessage = "W 1 8 2%0D";

elseif( command.params[1] == "f" or command.params[1] == "F" ) then