Jump to content

Component: BBC News (Comms: IoT/Cloud): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 15: Line 15:
Easily allows you to collect the news headlines and stories from the BBC RSS feed.
Easily allows you to collect the news headlines and stories from the BBC RSS feed.


==Component Pack==
==Component Source Code==


COMMSC
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_BBCNews.fcfx FC_Comp_Source_BBCNews.fcfx]


==Detailed description==
==Detailed description==




Line 32: Line 34:


==Examples==
==Examples==




Line 151: Line 155:
|-
|-
| colspan="2" | Maximum time to wait for valid incoming data. 
| colspan="2" | Maximum time to wait for valid incoming data. 
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Data
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
Line 171: Line 179:
|-
|-
| colspan="2" | Records the news topics full story URL into RAM 
| colspan="2" | Records the news topics full story URL into RAM 
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
|-
|}
|}

Revision as of 17:44, 9 November 2022

Author MatrixTSL
Version 1.0
Category Comms: IoT/Cloud


BBC News component

Easily allows you to collect the news headlines and stories from the BBC RSS feed.

Component Source Code

Please click here for the component source code: FC_Comp_Source_BBCNews.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

GetURL
Get Selected News Item URL 
- STRING Return


RequestData
Requests data about your selected location from the BBC news service. Returns the number of headlines if the request was successful. Must be called before trying to call any of the GetXXX macros. 
- UINT ItemNumber
Headline Index To Read 
- UINT Return


GetTitle
Get Selected News Item Title 
- STRING Return


GetDescription
Get Selected News Item Description 
- STRING Return


Initialise
Sets up the component ready to collect news data. 
- VOID Return



Property reference

Properties
Network Comms Component
Network Communications component to use as the bridge to the TCP/IP network. 
BBC IP Address
IP Address linked to the following URL: weather-broker-cdn.api.bbci.co.uk 
News Feed
 
Feed URL
 
Receive Timeout
Maximum time to wait for valid incoming data. 
Data
Record Title
Stores the news topic title into RAM. 
Title Buffer Size
Number of bytes to allocate to storing titles. 
Record Description
Stores the news topic description into RAM. 
Record URL
Records the news topics full story URL into RAM