Code Monkey home page Code Monkey logo

espudpled's Introduction

This is a simple Arduino receiver for the TPM2.NET protocol. I borrowed some of the TPM2.NET code from some other guys doing the same thing with 2812 leds. It works well with the Jinx LED controller http://www.live-leds.de/

espudpled's People

Contributors

snowzach avatar

Stargazers

Scott Yeargain avatar Reece Ketley avatar  avatar Vasudev Das avatar Mike McRoberts avatar

Watchers

James Cloos avatar Reece Ketley avatar  avatar

espudpled's Issues

Never connects (at least if you are running from a Windows Arduino IDE).

I was trying to upload this sketch to ESP8266 and it was never succeeding connecting to my Wifi.

I replaced the connection string to hardcoded WiFi.begin("mySID", "myPassword") and it connected allright.

The problem is probably, that you read the input until '\n', which in Windows is preceded by 0xD0 character, which is not visible, but is perfectly translated by
input.toCharArray(settings.password, BUFFER_SIZE);
so I put after this line following line of code (after both ssid input and password input lines 92, 99):
if (settings.ssid[input_len-1] == 0x0D) settings.ssid[input_len-1] = 0;
if (settings.password[input_len-1] == 0x0D) settings.password[input_len-1] = 0;
respectively.
Of coarse you have to preceed the line 91 by
int input_len;
and change both lines 91 and 98 to:
if(input_len = input.length()) {
[it is really = and not == here]

and now it connects!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.