I'm working on my first RFDuino project.
I can send data to it, but how do I get the RFDuino to remember what was sent so if the app is killed in the App Switcher it remembers the last items saved to it on the next launch?
EDIT:
I am sending data to my RFDuino and using NSUserDefaults so my app shows what is currently sent to the device.
Where I am stuck now is how to send my data in the way I want it.
So, for example:
I am sending it 3 values, let's say they are 2.0, 4, and 60.
The data that the RFDuino is getting is <02>, <04>, and <06>.
I'd like for it to get, 2,4,and60. The 2 may need to be 20, not sure on that part.
Here's how I am sending the data for the first number:
CGFloat firstTotal;
uint8_t tx = firstTotal;
NSData *burstRateData = [NSData dataWithBytes:(void*)&tx length:1];
[self.rfduino send:burstRateData];
Logging it, I would get <02> for 2.0.
How would I send 2 or 20 for 2.0?