googlearchive / science-journal-ios

Use the sensors in your mobile devices to perform science experiments. Science doesn’t just happen in the classroom or lab—tools like Science Journal let you see how the world works with just your phone.
https://sciencejournal.withgoogle.com/
Apache License 2.0
536 stars 62 forks source link

BLE sensor protocol should pass along error when connecting #13

Open taquitos opened 5 years ago

taquitos commented 5 years ago

BLESensorInterface connect() method passes along a success Bool but should also pass along an optional Error object.

Location in code: https://github.com/google/science-journal-ios/blob/be7ecf0c3749793d6b18c1058d343a66c6d4314d/ScienceJournal/BLEMakingScience/MakingScienceSensorInterface.swift#L207