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
A

adrian_kbb73

@adrian_kbb73
About
Posts
9
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • It is possible to send a string
    A adrian_kbb73

    thak you very much.
    i will prove.

    General Discussion

  • It is possible to send a string
    A adrian_kbb73

    My question is:
    It is possible to send a string via send (msg)
    If possible, could give me an example
    thank you very much

    And good afternoon.

    General Discussion

  • several nodes gatewayserial it's possible??(problem).
    A adrian_kbb73

    @Boots33
    Yes, thanks, that's what I want to do.
    I'll prove it.

    General Discussion

  • several nodes gatewayserial it's possible??(problem).
    A adrian_kbb73

    good day
    I have this problem
    I have a couple of nodes connected to the serial gateway (without a controller)
    And the problem is that they cross the transmissions that they send me
    (I need to have the measurements of the nodes separately)
    the question is
    It is possible to avoid the crossings of transmissions so that I get the data of node N first and then the next and so on.

    I hope you can help me with this doubt
    It's for a school project
    Thank you.

    General Discussion

  • multi rebbots gatewayserial mysensors 2.1.1
    A adrian_kbb73

    Hi, hope you have a good day
    i'm beginner in mysensors,
    I hope you can help me, I have the problem in multi reboots in the sketch of gatewayserial and sometimes it freezes, hope you can help me.
    this is the trouble.


    �0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGA--,VER=2.1.1
    0;255;3;0;9;MCO:BGN:BFR
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGA--,VER=2.1.1
    0;255;3;0;9;MCO:BGN:BFR
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    0;255;3;0;9;TSM:INIT:TSP OK
    0;255;3;0;9;TSM:INIT:GW MODE
    0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.1.1
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1


    multi reboots

    General Discussion

  • 'MySensors' does not name a type
    A adrian_kbb73

    @Sander-Stolk
    o thank you, i will prove without that line

    General Discussion

  • 'MySensors' does not name a type
    A adrian_kbb73

    @adrian_kbb73
    #define MY_RADIO_RFM69
    #define MY_RFM69_FREQUENCY RF69_915MHZ
    #define MY_IS_RFM69HW
    #define MY_RF69_IRQ_PIN 2
    #define MY_RF69_SPI_CS 10
    #include <SPI.h>
    #include <MySensors.h>
    #include <DHT.h>

    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    #define HUMIDITY_SENSOR_DIGITAL_PIN 3
    unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)

    MySensors gw;/// Here I get the error
    DHT dht;
    float lastTemp;
    float lastHum;
    boolean metric = true;
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);

    void setup()
    {
    gw.begin();
    dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);

    // Send the Sketch Version Information to the Gateway
    gw.sendSketchInfo("Humidity", "1.0");

    // Register all sensors to gw (they will be created as child devices)
    gw.present(CHILD_ID_HUM, S_HUM);
    gw.present(CHILD_ID_TEMP, S_TEMP);

    metric = gw.getConfig().isMetric;
    }

    void loop()
    {
    delay(dht.getMinimumSamplingPeriod());

    float temperature = dht.getTemperature();
    if (isnan(temperature)) {
    Serial.println("Failed reading temperature from DHT");
    } else if (temperature != lastTemp) {
    lastTemp = temperature;
    if (!metric) {
    temperature = dht.toFahrenheit(temperature);
    }
    gw.send(msgTemp.set(temperature, 1));
    Serial.print("T: ");
    Serial.println(temperature);
    }

    float humidity = dht.getHumidity();
    if (isnan(humidity)) {
    Serial.println("Failed reading humidity from DHT");
    } else if (humidity != lastHum) {
    lastHum = humidity;
    gw.send(msgHum.set(humidity, 1));
    Serial.print("H: ");
    Serial.println(humidity);
    }

    gw.sleep(SLEEP_TIME); //sleep a bit
    }

    General Discussion

  • 'MySensors' does not name a type
    A adrian_kbb73

    hello, i'm new in arduino and in das forum
    and i have this error in code
    i hope they can help me.
    /////////error//////////////
    exit status 1
    'MySensors' does not name a type
    /////////////////////////////////////////////////////////////

    General Discussion
  • Login

  • Don't have an account? Register

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