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
  1. Home
  2. Troubleshooting
  3. Trying my first temperature sketch

Trying my first temperature sketch

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 840 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • raptorjrR Offline
    raptorjrR Offline
    raptorjr
    wrote on last edited by
    #1

    So, I'm having some problems with trying my first sketch. I have no communication attached. Only a Arduino Nano with a temperature sensor. And I thought I should just see some values in the debug window.

    But I can't get it to work.
    First I tried using codebender and the example at https://www.mysensors.org/build/temp, after having to comment out some things in the sketch according to the comments I get this error:

    In file included from (library file) MySensor/MyGateway.cpp:12:
    (library file) MySensor/MyGateway.h:39:28: error: use of undeclared identifier 'DEFAULT_CE_PIN'

                MyGateway(uint8_t _cepin=DEFAULT_CE_PIN, uint8_t _cspin=DEFAULT_CS_PIN, uint8_t _inclusion_time = 1, uint8_t _inclusion_pin = 3, uint8_t _rx=6, uint8_t _tx=5, uint8_t _er=4);
    

    I do understand that it is undeclared, but have no clue what value it should have. Thought that the example sketches should be finished and ready to use?

    Anyway, also tried to copy the sketch to the Arduino IDE. And there I get another error:

    ..\Documents\Arduino\libraries\MySensors/MySensors.h:287:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

    #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.

    Yes I know I don't have a gateway or anything, but then again. Shouldn't it be possible to run a sketch and look at the debug output?

    As I said, this is my first time and I have probably done something wrong and this is easy to fix for someone who knows how all this works =)

    1 Reply Last reply
    0
    • raptorjrR Offline
      raptorjrR Offline
      raptorjr
      wrote on last edited by
      #2

      I found the link to the updated 2.0 sketch and even though I still have problems, this is not one of them anymore =)
      https://github.com/mysensors/MySensorsArduinoExamples

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      25

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

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