Component: BBC News (Comms: IoT/Cloud)
Author | MatrixTSL |
Version | 1.0 (Release) |
Category | Comms: IoT/Cloud |
Contents
BBC News component
Easily allows you to collect the news headlines and stories from the BBC RSS feed.
Examples
No additional examples
Downloadable macro reference
GetURL
Get Selected News Item URL
Parameters
- This macro has no parameters
Return value
RequestData
Requests data about your selected location from the BBC weather service.
Returns the number of headlines if the request was successful.
Must be called before trying to call any of the GetXXX macros.
Parameters
- UINT ItemNumber
- Headline Index To Read
Return value
GetTitle
Get Selected News Item Title
Parameters
- This macro has no parameters
Return value
GetDescription
Get Selected News Item Description
Parameters
- This macro has no parameters
Return value
Initialise
Sets up the component ready to collect weather data.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Network Comms Component
This property is of type Panel object and can be referenced with the variable name NetworkCommsComp.
Network Communications component to use as the bridge to the TCP/IP network.
BBC IP Address
This property is of type Line of text and can be referenced with the variable name IPAddr.
IP Address linked to the following URL: weather-broker-cdn.api.bbci.co.uk
News Feed
This property is of type Fixed list of ints and can be referenced with the variable name Subtopic.
No additional information
Feed URL
This property is of type Line of text and can be referenced with the variable name FeedURL.
No additional information
Receive Timeout
This property is of type Unsigned integer and can be referenced with the variable name RxTimeout.
Maximum time to wait for valid incoming data.
Record Title
This property is of type True or false and can be referenced with the variable name RecordTitle.
Stores the news topic title into RAM.
Title Buffer Size
This property is of type Unsigned integer and can be referenced with the variable name TitleBufferSize.
Number of bytes to allocate to storing titles.
Record Description
This property is of type True or false and can be referenced with the variable name RecordDesc.
Stores the news topic description into RAM.
Record URL
This property is of type True or false and can be referenced with the variable name RecordURL.
Records the news topics full story URL into RAM