Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sat Nov 18, 2017 10:37 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Aug 16, 2013 7:13 pm 
Offline

Joined: Fri Aug 16, 2013 7:07 pm
Posts: 1
I would like to obtain the IP address that an A12 terminal is using when a button within a screen is clicked.
I reviewed the Qlarity language reference and see a function that can do it, but I can't figure out the exact syntax to
get it to work. Could you provide some guidance or a code sample for it ?
Thanks much...


Top
 Profile  
 
PostPosted: Mon Aug 26, 2013 7:15 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
Breenerman:

Assuming your A12 has only a single IP address (the standard A12 configuration, especially when using Qlarity), the following should work:

Code:
func click()
    dim addr[] as byte
    dim addrStr as string
    GetSystemSetting(SYS_IPADDRESS, addr, SYSREAD_CURRENT)

    addrStr = str(addr)
    replace(addrstr, 0, -1, ",", ".", -1)
    replace(addrstr, 0, -1, "[", "", -1)
    replace(addrstr, 0, -1, "]", "", -1)
    Value = "IP Address=" + _StrToCharStr(addrstr)
endfunc

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group