Author Topic: Reading in data from pin and sending it  (Read 602 times)

TriNewton

  • RFduino Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reading in data from pin and sending it
« on: June 15, 2016, 08:46:52 AM »
Say I had a chip (let us call it chip A) that was randomly generating bytes and outputting them at 9600 baud (on a single pin) and that I wanted to send this to a phone. I read the documentation on the BLE programming, so it is fairly obvious that I will have to use RFDuino.sendByte() after I get the RFDuino to pair with the phone. However, how do I get the bytes from the chip and into the RFDuino in the first place? I'd assume that I'd have to connect chip A to a GPIO pin, but I have no clue what I would put in the code to tell the RFDuino to read in bytes from that pin. As long as I know how to do that, using RFDuino.sendByte() afterward would be fairly straightforward.