Skip to content

A public repository 'roku-channels' contains, roku channels for developers to learn and grow their roku/brightscript development skills.

Notifications You must be signed in to change notification settings

ersps25/Roku-CheckNetworkStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Status

Brightscript Scenegraph Channel to detect network connection status

roDeviceInfo

roDeviceInfo node is used to get any type of device information like network connection/disconnection status, IP Address, Device Model, OS Version and many more things.

Steps to integrate network status check

1. Write boolean field inside Scene.xml (file extending the Scene node)
2. Write observed function inside corresponding Scene.brs
3. Inside main.brs
    1. Create object of roDeviceInfo
    2. Set the port
    3. Invoke enableNetworkStatusEvent(true)
    4. Inside Event Loop, add the following code

        if msgType = "roDeviceInfoEvent" and msg.isStatusMessage() then 
            scene.offline = msg.getInfo().linkStatus
        end if

Questions?

Website: www.jhnvi.com
Email: shishupal.shakya@jhnvi.com
LinkedIn: https://www.linkedin.com/in/shishupalshakya/

About

A public repository 'roku-channels' contains, roku channels for developers to learn and grow their roku/brightscript development skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published