SignStixNetwork
Modifier and Type | Function and Description |
---|---|
void |
downloadRssFeed(String feedUrl,
int timeoutSecs,
String jsFunctionName)
Download and parse the RSS feed XML at the argument URL.
|
void |
downloadText(String url,
int timeoutSecs,
String jsFunctionName)
Download text content from the argument URL.
|
void |
findWebControlInterfaces(int timeoutSecs,
String jsFunctionNameSingle,
String jsFunctionNameAll)
Discover any local SignStix devices currently offering the Web Control interface and
find the IP address and port of those interfaces, for subsequent communication.
|
void downloadText(String url, int timeoutSecs, String jsFunctionName)
url
- - the URL of the content.timeoutSecs
- - the maximum number of seconds before giving up.jsFunctionName
- - the name of a Javascript function that takes the
following parameter:
void downloadRssFeed(String feedUrl, int timeoutSecs, String jsFunctionName)
feedUrl
- - the URL of the RSS feed.timeoutSecs
- - the maximum number of seconds before giving up.jsFunctionName
- - the name of a Javascript function that takes parameters as
follows:
... would be converted to this JSON:
{ "rss": { "channel": { "title": "My RSS Feed!", "item": [ { "title": "This is the first story title", "description": "Lots of info about story 1", "thumbnail": { "-width": "1920", "-height": "1080", "-url": "http://mydomain.com/greatImage1.jpg" } }, { "title": "This is the second story title", "description": "Lots of info about story 2", "thumbnail": { "-width": "1920", "-height": "1080", "-url": "http://mydomain.com/greatImage2.jpg" } } ] } } }
void findWebControlInterfaces(int timeoutSecs, String jsFunctionNameSingle, String jsFunctionNameAll)
timeoutSecs
- - the maximum number of seconds to allow before giving up.jsFunctionNameSingle
- - the name of a Javascript function which is called each time a device
is discovered. It takes the following parameter:
jsFunctionNameAll
- - the name of a Javascript function which is called when the timeout expires.
It takes the following parameter: