Alireza770717
Junior Member level 3
- Joined
- Nov 21, 2023
- Messages
- 25
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 155
Hello friends
have a good time
I have made one transmitter and one receiver with stm32 microcontroller and NRF
In the transmitter, I send a number to stm using the keypad, which is defined as follows
(for example) int key = 5;
Then the number 5 itself is given and sent to NRF through the following function
sprintf(tx_data,"%c",key);
{
tx_data;
}
nrf24l01p_tx_transmit( tx_data );
(I think the desired number is stored as a character in tx_data.)
Also, tx_data is defined as follows:
volatile uint32_t tx_data[NRF24L01P_PAYLOAD_LENGTH] = {};
in the receiver as well
volatile uint32_t rx_data[NRF24L01P_PAYLOAD_LENGTH] = {};
it will be received.
Now I want to receive my received in the form of an integer and perform mathematical operations.
I did everything to convert it to integer in both the sender and the receiver, but I did not get an answer.
I will give you my codes if you want.
nrf library from the following link:
https://github.com/mokhwasomssi/stm32_hal_nrf24l01p
Thank You
have a good time
I have made one transmitter and one receiver with stm32 microcontroller and NRF
In the transmitter, I send a number to stm using the keypad, which is defined as follows
(for example) int key = 5;
Then the number 5 itself is given and sent to NRF through the following function
sprintf(tx_data,"%c",key);
{
tx_data;
}
nrf24l01p_tx_transmit( tx_data );
(I think the desired number is stored as a character in tx_data.)
Also, tx_data is defined as follows:
volatile uint32_t tx_data[NRF24L01P_PAYLOAD_LENGTH] = {};
in the receiver as well
volatile uint32_t rx_data[NRF24L01P_PAYLOAD_LENGTH] = {};
it will be received.
Now I want to receive my received in the form of an integer and perform mathematical operations.
I did everything to convert it to integer in both the sender and the receiver, but I did not get an answer.
I will give you my codes if you want.
nrf library from the following link:
https://github.com/mokhwasomssi/stm32_hal_nrf24l01p
Thank You