Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
P

Pewh

@Pewh
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Two pulse power meters on one Arduino
    P Pewh

    I think I solved it myself after some searching on this forum.

    void receive(const MyMessage &message) {
    Serial.print("Receive.....");
    if (message.type == V_VAR1) {
          if (message.sensor == 1) {
            pulseCount = oldPulseCount = message.getLong();
            Serial.println("Received data from child 1: ");
            Serial.println(pulseCount);
        } 
          else if (message.sensor == 2) {
            pulseCount2 = oldPulseCount2 = message.getLong();
            Serial.println("Received data from child 2: ");
            Serial.println(pulseCount2);
        }
      pcReceived = true;
      }
    }
    
    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular