Good evening everyone!
I got this Bluetooth module HC-05 in my hands. I picked it up to stm32vldiscovery by uart (used the 1st uart). The reciprocal part is written under Android on this manual . There was a problem trying to transfer the elementary sequence “okay”. I tried to convey this:
void USART_PutSequence(uint8_t *sequence) { while(*sequence != 0) { USART_SendData(USART1, (uint8_t)*sequence); sequence++; } }
So:
void USART_PutSequence(uint8_t *sequence) { USART_SendData(USART1, (uint8_t)sequence[0]); USART_SendData(USART1, (uint8_t)sequence[1]); USART_SendData(USART1, (uint8_t)sequence[2]); USART_SendData(USART1, (uint8_t)sequence[3]); }
In any case, only “y” comes in, that is, the last byte. Can anyone come across such a problem? Something I don’t really want to transfer arrays byte-by-byte, while synchronizing with delays.