我目前正在进行的Arduino项目遇到了一些困难。 我正在开发的函数的目的是接收通过NRF无线模块接收的char数组变量,并将其分离为两个不同的字符串变量。前13个字符组成一个字符串,其余的组成另一个字符串。void receiveData(char* receivedData){ // Function to place the receiv
我有一个Arduino,它通过将字符串拆分成数组来处理它。但是,由于某些原因,在处理函数返回后,该数组在出现值损坏之前只能访问一次。换句话说,我可以访问数组的任何元素,但当我这样做时,我无法访问数组的任何其他元素。Notice how inside the getCommands() function, it will output all elements ok
char** commands = getCo