Im creator TsSimComms!!   
I'm also working on a plugin for TS3, but I have trouble with C +      
Read my TsSimComms-export.lua   
if not LoGetPlayerPlaneId() then return t end 
local function canaleradio(freq) 
local Corezione = math.fmod(freq,25000) 
if (Corezione > 5000) then 
freq = freq + (25000-Corezione) 
else 
freq = freq - Corezione 
end 
freq = tostring(freq/1000) 
return freq 
end     
local R_800 = GetDevice(48) 
local radio = R_800:l_get_state() 
local radionoff = R_800:l_get_state()     
if R_800 then 
radio = canaleradio(radio["frequency"]) 
onoff = (radionoff["isOn"])   
if (radionoff["isOn"] == true) then   
if not (ChannelChange == radio) then 
socket.try(c:send(string.format("radon = %.2f", radio))) 
ChannelChange = radio 
end 
if not (OnOffChange == onoff) then 
socket.try(c:send(string.format("radon = %.2f", radio))) 
OnOffChange = onoff 
end 
else 
if not (OnOffChange == onoff) then 
socket.try(c:send(string.format("radof = OFF"))) 
OnOffChange = onoff 
end 
end 
end