HC05/HC06 macro has strange response?
Posted: Sun Feb 05, 2017 1:37 am
I've made the attached flowchart to send and receive data with the HC05 HC06 Bluetooth module.
It should respond to a certain number I send via a Bluetooth terminal.
In Arduino it works fine but in Flowcode I get this strange response.
It should dim a green led when it receives "1", and turn the green led on when receiving "2".
It should dim a orange led when it receives "3", and turn the green led on when receiving "4".
This is how it works in Arduino.
When I make the same program in Flowcode, the numbers it responds to aren't 1 to 4, but 98/100/102/104
These are double of the ASCII characters (I just found out when typing..)
Why are these values doubled??
Anyone an idea??
It should respond to a certain number I send via a Bluetooth terminal.
In Arduino it works fine but in Flowcode I get this strange response.
It should dim a green led when it receives "1", and turn the green led on when receiving "2".
It should dim a orange led when it receives "3", and turn the green led on when receiving "4".
This is how it works in Arduino.
When I make the same program in Flowcode, the numbers it responds to aren't 1 to 4, but 98/100/102/104
These are double of the ASCII characters (I just found out when typing..)
Why are these values doubled??
Anyone an idea??