Considerations for porting a Boron App to Photon?

Hi. We have a customer with no AT&T cellular and great WIFI. Our entire fleet of BLE devices to this point has been based on Borons to communicate back to our server via cellular.

How hard would it be to port to the Photon 2?

Could my app be written once to support both the Boron and the Photon? ( IF (BORON) use cellular ELSE use wifi )

How does the customer put the Photon on their WIFI??

Thanks,
Tim

The source code can generally be the same for multiple devices and connectivity types. If you allow the device to use the default connectivity method, it can be exactly the same code.

If you need to conditionally compile some sections of code, see checking for features.

The biggest issue will be if you need to a few alternate functions like SPI1, which is on different pins. Same for PWM. See the Photon 2 from Argon migration guide. Even though you're using the Boron, the Argon and Boron have the same pinout and pin functions, which are slightly different than the Photon 2.

The only other issue is that the Photon 2 does not have a PMIC and fuel gauge, so there are more restrictions on powering by an external variable voltage and there isn't a very good way to determine the battery charge accurately on the Photon 2.

@sensorcheck also keep in mind that the Photon 2 will not connect to "enterprise" WiFi.

We don't use any pins - purely BLE in and information to the server out. We DO use PMIC and fuel guage. I did not see the Argons in the store, but they also are not in the discontinued hardware list. Can we purchase them? Then the last question is how the customer will set up WIFI details? Thanks again!

The Argon is discontinued and no longer available, but it also does not have a PMIC or fuel gauge.

See Wi-Fi setup options for options for setting up Wi-Fi.