Component: Reddit News Headlines (Comms: IoT/Cloud)

From Flowcode Help
Jump to navigationJump to search
Author MatrixTSL
Version 1.0
Category Comms: IoT/Cloud


Reddit News Headlines component

Easily allows you to collect the news headlines RSS feed from reddit.com

Component Source Code

Please click here to download the component source project: FC_Comp_Source_RedditNewsHeadlines.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_RedditNewsHeadlines.fcfx

Detailed description

No detailed description exists yet for this component

Examples

FC6 Icon.png RTC DS1307 DS3231 Example.fcfx

Example showing how to retrieve and display the time using bytes or string RTC component.






Macro reference

GetHeadline

Fc9-comp-macro.png GetHeadline
Returns the next headline in the prodivded string parameter. Returns true if a new headline is available, else returns false if we are at the end of the feed. 
Fc9-string-icon.png - STRING Headline
 
Fc9-u16-icon.png - UINT MaxLength
The maximum size of the string variable available to us. 
Fc9-bool-icon.png - BOOL Return


Initialise

Fc9-comp-macro.png Initialise
Sets up the component ready to collect weather data. 
Fc9-void-icon.png - VOID Return


RequestData

Fc9-comp-macro.png RequestData
Requests headline RSS feed from reddit Returns true if the request was successful. Must be called before trying to call the GetHeadline macro. 
Fc9-bool-icon.png - BOOL Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-17-icon.png Network Comms Component
Network Communications component to use as the bridge to the TCP/IP network. 
Fc9-type-10-icon.png Reddit IP Address
IP Address linked to the following URL: reddit.com 
Fc9-type-21-icon.png Receive Timeout
Maximum time to wait for valid incoming data.