Difference between revisions of "Bot test"

From Flowcode Help
Jump to navigationJump to search
Line 2: Line 2:
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" | '''Initialise'''
+
| width="90%" | '''StringRead'''
 
|-
 
|-
| colspan="2" | Required to be used whenever the Bluetooth component is used in a program. Initialises the Bluetooth component ready for use.  
+
| colspan="2" | Returns the ASCII value of character idx of the Response string.  
 
|-
 
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | response_code
+
| width="90%" | idx
 
|-
 
|-
| colspan="2" | 1:OK / 2:ERROR / 3:CONNECT / 4:NO CARRIER / 5:AUDIO / 6:PAIR / 7:RING
+
| colspan="2" | Needs to be a equal to or less than the string length of the response in order to retrieve a valid character.
 
|-
 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | timeout
 
|-
 
| colspan="2" | The timeout value will need to set to allow sufficient time for the response to arrive.
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
 
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}

Revision as of 13:04, 17 August 2021

Fc9-comp-macro.png StringRead
Returns the ASCII value of character idx of the Response string.
Fc9-u8-icon.png - BYTE idx
Needs to be a equal to or less than the string length of the response in order to retrieve a valid character.
Fc9-u8-icon.png - BYTE Return