Component: BBC News (Comms: IoT/Cloud)

From Flowcode Help
Revision as of 09:11, 12 October 2020 by BenR (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Author MatrixTSL
Version 1.0 (Release)
Category Comms: IoT/Cloud


Image 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

STRING


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

UINT


GetTitle

Get Selected News Item Title

Parameters

This macro has no parameters


Return value

STRING


GetDescription

Get Selected News Item Description

Parameters

This macro has no parameters


Return value

STRING


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