Skip to content

Commit

Permalink
fixes for ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschwartz committed Feb 1, 2016
1 parent 724a482 commit 579b1d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aREST [![Build Status](https://travis-ci.org/marcoschwartz/aREST.svg?branch=master)](https://travis-ci.org/marcoschwartz/aREST)

Version 2.1.0
Version 2.1.1

## Overview

Expand Down
8 changes: 7 additions & 1 deletion aREST.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License:
http://creativecommons.org/licenses/by-sa/4.0/
Version 2.1.0
Version 2.1.1
Changelog:
Version 2.1.1: Fixed analogWrite() for ESP8266 chips
Version 2.1.0: Added publish() function
Version 2.0.2: Able to change MQTT remote server
Version 2.0.2: Added cloud access support for the Ethernet library
Expand Down Expand Up @@ -889,6 +890,11 @@ bool send_command(bool headers) {

if (state == 'w') {

// Disable analogWrite if ESP8266
#if defined(ESP8266)
analogWrite(pin, 0);
#endif

// Apply on the pin
digitalWrite(pin,value);

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=aREST
version=2.1.0
version=2.1.1
author=Marco Schwartz
maintainer=Marco Schwartz <[email protected]>
sentence=RESTful API for the Arduino platform.
Expand Down

0 comments on commit 579b1d5

Please sign in to comment.