Skip to content

Commit

Permalink
v2.3.6
Browse files Browse the repository at this point in the history
enhanced ESP8266 support
  • Loading branch information
Daniel Letscher committed Sep 3, 2015
1 parent c639193 commit c90acae
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Exosite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
Exosite::Exosite(Client *_client)
{
client = _client;
#if !defined(ESP8266)
fetchNVCIK();
#endif
}

Exosite::Exosite(const char *_cik, Client *_client)
Expand All @@ -50,6 +52,11 @@ Exosite::Exosite(const String _cik, Client *_client)
client = _client;
}

#if defined(ESP8266)
void Exosite::begin(){
fetchNVCIK();
}
#endif
/*==============================================================================
* writeRead
*
Expand Down
6 changes: 5 additions & 1 deletion Exosite.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


#define serverName "m2.exosite.com"
#define ACTIVATOR_VERSION F("2.3.4")
#define ACTIVATOR_VERSION F("2.3.6")

// Select a Debug Level:
//#define EXOSITEDEBUG 1
Expand Down Expand Up @@ -83,6 +83,10 @@ class Exosite
Exosite(const char *_cik, Client *_client);
Exosite(const String _cik, Client *_client);

#if defined(ESP8266)
void begin();
#endif

// Current Methods
boolean writeRead(const char* writeString,const char* readString, char** returnString);
boolean writeRead(const String &writeString, const String &readString, String &returnString);
Expand Down
20 changes: 18 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ writeRead
---------
```cpp
boolean Exosite::writeRead(char* writeString, char* readString, char** returnString)
boolean Exosite::writeRead(char* writeString, char* readString, char** returnString);
```

```cpp
boolean Exosite::writeRead(String writeString, String readString, String &returnString)
boolean Exosite::writeRead(String writeString, String readString, String &returnString);
```
`writeString`: This sets the values to write to certain datasources. eg. "alias3=value3&alias4=value4"
Expand All @@ -106,6 +106,19 @@ boolean Exosite::provision(char* vendorString, char* modelString, char* snString

`snString`: The string that identifies the device's serial number.

ESP8266 Only
------------

```cpp
void Exosite::begin();
```

To be used after `EEPROM.begin()` to allow for proper device provisioning.

Use only if using the following constructor:
```cpp
Exosite(Client *_client);
```
Migration from V1
=================
Expand All @@ -119,6 +132,9 @@ You will also need to remove `exosite.init();` and add `Ethernet.begin(macData);
Release Info
============
**v2.3.6 - Release 2015-09-03**
- Add method `Exosite::begin()` for ESP8266 boards only to be used after `EEPROM.begin()` to fix provisioning scenarios
**v2.3.5 - Release 2015-08-18**
- Removed `Serial.print()` statements in `fetchNVCIK()` to prevent printing to serial port before `Serial.begin()`
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Exosite
version=2.3.5
version=2.3.6
author=Patrick Barrett <[email protected]>
maintainer=Patrick Barrett <[email protected]>
sentence=Easily interface with Exosite's simple data APIs.
Expand Down

0 comments on commit c90acae

Please sign in to comment.