Now MQTT compatible with test.mosquitto.org free broker (empty User vs NULL user)

Few analog-in fixes. ESP32 compilation broken due doard definition
changed. Trying to workaround it
This commit is contained in:
2019-04-30 12:51:57 +03:00
parent 29a95f79c0
commit 7cb0492a30
3 changed files with 19 additions and 9 deletions

View File

@@ -470,7 +470,7 @@ void Input::analogPoll() {
// Mapping
if (inputMap && inputMap->type == aJson_Array)
{
int max;
int max=1024;
if (aJson.getArraySize(inputMap)>=4)
mappedInputVal = map (mappedInputVal,
aJson.getArrayItem(inputMap, 0)->valueint,