StephenBlackWasAlreadyTaken / wixel-xDrip

Allow a wixel to function as Dexcom Reciever
Other
47 stars 117 forks source link

Store transmitter_id in a separate file #37

Closed jamorham closed 8 years ago

jamorham commented 9 years ago

As the transmitter_id could be considered personal information and I grew weary of re-pasting it in to the source, I thought moving it to a separate untracked file was a good idea.

The Makefile detects if the file exists and if it does it includes it which overrides the defaults in the dexdrip.c source file.

The external file would be apps/dexdrip/my_transmitter_id.h and would look much like this:

#warning "Using my_transmitter_id.h include"     

static XDATA const char transmitter_id[] = "AAAAA";

This pull request also defaults the alternate usb protocol to enabled.

dronesalot commented 8 years ago

I think it would be better to have the system built with a .h file the user can edit and commit. This way you can easily #define the dex receiver ID and you can build it with whatever config settings you like with a makefile setting. For example put your different dex settings in their own directory and use -I mydex/ or -I kidsdex/ when you build it.

JohanDegraeve commented 8 years ago

be aware you can use the xbridge2 software on an xdrip (even without the resistor circuit and the extra wire for the energy saving). https://raw.githubusercontent.com/jstevensog/wixel-sdk/master/apps/xBridge2/xBridge2.wxl If you install this and then use the latest beta of the android app, you can configure the transmitter id via the android app settings