Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: MattzoSwitchController #1833
    Henk JansenHenk Jansen
    Participant

    Hi Matthias,

    I’m tryin to build a mattzoswitchcontroller.
    I managed to get the sketch on my ESP8266. I think i’m running MQTT (although i’m not sure its good). And i have installed rocrail.
    Is there an easy way to set the whole thing up to test if all is done well? i don’t see a thing 🙂 i have one switch (servo) connected to D1…

    I lost your description here:””” On first boot, the controller generates a random number called “MattzoControllerID”.”””

    Can’t get this done. i get:

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at processing.app.Serial.write(Serial.java:254)
    	at processing.app.Serial.write(Serial.java:274)
    	at processing.app.SerialMonitor.send(SerialMonitor.java:122)
    	at processing.app.SerialMonitor.lambda$new$1(SerialMonitor.java:66)
    	at javax.swing.JTextField.fireActionPerformed(JTextField.java:508)
    	at javax.swing.JTextField.postActionEvent(JTextField.java:721)
    	at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:836)
    	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1668)
    	at javax.swing.JComponent.processKeyBinding(JComponent.java:2882)
    	at javax.swing.JComponent.processKeyBindings(JComponent.java:2929)
    	at javax.swing.JComponent.processKeyEvent(JComponent.java:2845)
    	at java.awt.Component.processEvent(Component.java:6316)
    	at java.awt.Container.processEvent(Container.java:2239)
    	at java.awt.Component.dispatchEventImpl(Component.java:4889)
    	at java.awt.Container.dispatchEventImpl(Container.java:2297)
    	at java.awt.Component.dispatchEvent(Component.java:4711)
    	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
    	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:835)
    	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1103)
    	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:974)
    	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:800)
    	at java.awt.Component.dispatchEventImpl(Component.java:4760)
    	at java.awt.Container.dispatchEventImpl(Container.java:2297)
    	at java.awt.Window.dispatchEventImpl(Window.java:2746)
    	at java.awt.Component.dispatchEvent(Component.java:4711)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
    	at java.awt.EventQueue$4.run(EventQueue.java:733)
    	at java.awt.EventQueue$4.run(EventQueue.java:731)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    in reply to: Firmware Upload Issues #1828
    Henk JansenHenk Jansen
    Participant

    I just found out all the info needed was inside the “MattzoController_Library.h”-file. I downloaded all the libraries (they’re not all of them searchable through the arduino software. Yoy need to download them from github).

    in reply to: Firmware Upload Issues #1823
    Henk JansenHenk Jansen
    Participant

    I’m getting there in little steps 🙂 I installed the PubSubClient library. ut now I get another fault:

    Arduino: 1.8.13 (Windows 10), Board:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    
    Meerdere bibliotheken gevonden voor "Servo.h"
    
    In file included from C:\Users\henk\Documents\Arduino\MattzoController_Switch\MattzoController_Switch.ino:13:0:
    
    Gebruikt: C:\Users\henk\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\Servo
    
    C:\Users\henk\Documents\Arduino\libraries\MattzoBricks/MattzoController_Library.h:44:22: fatal error: tinyxml2.h: No such file or directory
    
    Niet gebruikt: C:\Program Files (x86)\Arduino\libraries\Servo
    
     #include <tinyxml2.h>
    
    compilation terminated.
    exit status 1
    
    
    in reply to: Firmware Upload Issues #1822
    Henk JansenHenk Jansen
    Participant

    Oops, i forgot to select the right board in the settings.

    But now I get the warning that servo.h can’t be found at the right location. where do i find this one?

    in reply to: Firmware Upload Issues #1821
    Henk JansenHenk Jansen
    Participant

    Hi Matthias, I just bought my first ESP8266 board. I installed the Arduino software and I also downloaded your firmware and copied the library to the right location.

    I’m going to build a switch controller, but when i open the MattzoController_Switch.ino file with arduino and i try to upload it to te ESP8266 (wich is connected by USB) i get this alert:

    Arduino: 1.8.13 (Windows 10), Board:"Arduino Uno"
    
    MattzoController_Switch:10:10: fatal error: ESP8266WiFi.h: No such file or directory
    
     #include <ESP8266WiFi.h>                          // WiFi library for ESP-8266
    
              ^~~~~~~~~~~~~~~
    
    compilation terminated.
    
    exit status 1
    
    ESP8266WiFi.h: No such file or directory

    Can you send me on the right path?

Viewing 5 posts - 1 through 5 (of 5 total)