Difference between revisions of "Bot test"
From Flowcode Help
Jump to navigationJump to searchLine 10: | Line 10: | ||
| width="90%" | idx | | width="90%" | idx | ||
|- | |- | ||
− | | colspan="2" | Needs to be a equal to or less than the string length of the response in order to retrieve a valid character. | + | | 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" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 28: | Line 28: | ||
| width="90%" | idx | | width="90%" | idx | ||
|- | |- | ||
− | | colspan="2" | Refers to the Script page to send (1-4). | + | | colspan="2" | Refers to the Script page to send (1-4). |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 46: | Line 46: | ||
| width="90%" | ExpectEcho | | width="90%" | ExpectEcho | ||
|- | |- | ||
− | | colspan="2" | Remote module automatically echos back data: 1 = On (Expect echo), 0 = off | + | | colspan="2" | Remote module automatically echos back data: 1 = On (Expect echo), 0 = off |
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | SendCR | | width="90%" | SendCR | ||
|- | |- | ||
− | | colspan="2" | Automatically adds \n to the end of the command data: 1 = append CR, 0 = no CR. | + | | colspan="2" | Automatically adds \n to the end of the command data: 1 = append CR, 0 = no CR. |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 69: | Line 69: | ||
| width="90%" | Data | | width="90%" | Data | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 100: | Line 100: | ||
| width="90%" | Character | | width="90%" | Character | ||
|- | |- | ||
− | | colspan="2" | ASCII value or single character, | + | | colspan="2" | ASCII value or single character, |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 118: | Line 118: | ||
| width="90%" | ByteVal | | width="90%" | ByteVal | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Line 136: | Line 136: | ||
| width="90%" | response_code | | width="90%" | response_code | ||
|- | |- | ||
− | | colspan="2" | 1:OK / 2:ERROR / 3:CONNECT / 4:NO CARRIER / 5:AUDIO / 6:PAIR / 7:RING | + | | colspan="2" | 1:OK / 2:ERROR / 3:CONNECT / 4:NO CARRIER / 5:AUDIO / 6:PAIR / 7:RING |
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | timeout | | width="90%" | timeout | ||
|- | |- | ||
− | | colspan="2" | The timeout value will need to set to allow sufficient time for the response to arrive. | + | | 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-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE |
Revision as of 14:07, 17 August 2021
![]() |
StringReceive |
Checks for a response string. Returns the length of the response string if one is present otherwise returns 0. | |
![]() |
Return |
![]() |
Send_byte |
![]() |
ByteVal |
![]() |
Return |
![]() |
Initialise |
Required to be used whenever the Bluetooth component is used in a program. Initialises the Bluetooth component ready for use. | |
![]() |
Return |