This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Good development flow from Example to production application

I would appreciate some suggestions on a good development flow to go from an Example to end application

I have nrf52832 on a custom PCB. I tested several sdk13.0.0 examples with 10040 and s132 I worked through the tutorials, studied BLE, and enough of the SD API to get around.

I used the proximity example, since it had TX power, and thought that I could use it to indicate the distance to the server, for the user.

So I deleted the BAT service, and added x3 custom services and characteristics, added device information service.

I have everything working reliably, tested it with iPhone 4s,5/6/7, also an android, ONLY using the nRF Connect phone app, and testing with MCP 3.10.014

Then I read this stating "I'd never release app based on any of these templates.." Indicating the examples are mostly fro for newcomer or hobbyists.

Q1) Is it easier to start with an example that has a few services, and then add more, and delete some you do not need? or Start with a more basic example, and then add the services needed.

Surely starting from scratch trying to re-invent the wheel is not a good approach?

I understand the examples were made with whistles and bells, but is there a better suggestion, perhaps a more minimalistic template that has at least the basic services needed like

Generic Access, Generic Attribute

I have no buttons or display, only x3 sensors, so on power up I always advertise until connected to, then start sending 18 bytes of date, very 2 seconds. I am not power constrained.

I will still learn more and tweak more by the time the phone app is done, but someone who has already released BLE production code may have some advise.

NOTE: I appreciate the comments endnode made here so I'm not trying to disagree.

Any help appreciated.

Related