Open mast3rshak3055 opened 5 years ago
m365-dash.ino:399:7: 'Serial4' was not declared in this scope
It seems like you're trying to run the code through an Arduino.
Half duplex is part of Particle's standard library which is required to communicate with the scooter. I have heard of someone attempting to simulate half-duplex on an Arduino, but never sure how that turned out. You might want to look that up if your interested in working with an Arduino.
Serial4 is a serial port available on the electron and communicates with the GPS using the NEO-GPS library. The GPS functionality is not necessarily required.
@camcamfresh I was trying to build the code using particle web IDE but could not figure out which is the one required. I see "ParticleSoftSerial" exist but could not find Serial4 or similar. Also for GPS, I found "Particle-GPS" but it has no member NMEA. Is NEO-GPS also works fine with the GPS onboard the Particle Electron?
Serial4 is only available when you select a Particle device that has a Serial4 port on it (this includes the Electron but not the Photon). So you'll receive error trying to compile Serial4 if the Photon is selected. As for the GPS library, I'm using Neo-GPS which has the member NMEAGPS.
What are all the dependencies you are using for this code? If you could supply a library name or download link.