Skip to content

Commit

Permalink
Update demo code to use environment variable connection strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Junyi Yi committed Aug 24, 2017
1 parent 24c4e45 commit a9c55e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope

## Version Management

Out version strategy just follows the maven package version convention: `<major>.<minor>.<hotfix>-<prerelease>`, where:
Our version strategy just follows the maven package version convention: `<major>.<minor>.<hotfix>-<prerelease>`, where:

* `<major>`: Increasing when incompatible breaking changes happened
* `<minor>`: Increasing when new features added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void update(U item) throws StorageException {
abstract void mapItemToEntity(U item, V entity);

private CloudTable table;
private static final String CONNECTION_STRING = "DefaultEndpointsProtocol=https;AccountName=funccoffeemaker;AccountKey=xAPzVNkT45eFD8q7surtTMlHb+R3qPCZAfeoHVSZ7jOMqyft+swduT/XI064oO68JdQ79TxMK8Dv6Y/RZaE/uQ==";
private static final String CONNECTION_STRING = System.getenv("AzureWebJobsSampleStorage");
}

class InventoryTable extends EntityTable<InventoryEntry, InventoryTableEntity> {
Expand Down Expand Up @@ -131,7 +131,7 @@ void queueOrder(OrderEntry order) throws IOException, IotHubException {

private ServiceClient client = null;

private static final String CONNECTION_STRING = "HostName=funccoffeemaker.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=qehYAmgSR38V57ai0IDUQQWGIxIubGbMAwrE19JUtVw=";
private static final String CONNECTION_STRING = System.getenv("AzureWebJobsSampleIoTHub");
private static final String DEVICE_ID = "AZ3166";
private static final IotHubServiceClientProtocol MESSAGE_PROTOCOL = IotHubServiceClientProtocol.AMQPS;
}

0 comments on commit a9c55e4

Please sign in to comment.