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. Development
  3. sha204 library questions

sha204 library questions

Scheduled Pinned Locked Moved Development
6 Posts 3 Posters 3.2k Views 3 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.
  • DbagioniD Offline
    DbagioniD Offline
    Dbagioni
    wrote on last edited by
    #1

    Hello all.

    Im a little confused here, what can I say Im a hardware, oscilloscope, soldering iron kinda guy so code is still a bit confusing to me. Im trying to set up the security personalizer ino and keep hitting a small wall.

    The code calls for the following; #include "sha204_library.h" #include "sha204_lib_return_codes.h"

    Except in all my searching Im only finding 'sha204_library.h', all of the branches and files I can get say "sha204_lib_return_codes.h is included".
    Does this mean I only need to include the main sha204_library and not include the 'return_codes' portion separately? If I use the main library the code compiles without issues, if I'm trying to include the 'return_codes' portion it gets flagged.
    Id appreciate any thoughts.
    Dave

    rozpruwaczR 1 Reply Last reply
    0
    • DbagioniD Dbagioni

      Hello all.

      Im a little confused here, what can I say Im a hardware, oscilloscope, soldering iron kinda guy so code is still a bit confusing to me. Im trying to set up the security personalizer ino and keep hitting a small wall.

      The code calls for the following; #include "sha204_library.h" #include "sha204_lib_return_codes.h"

      Except in all my searching Im only finding 'sha204_library.h', all of the branches and files I can get say "sha204_lib_return_codes.h is included".
      Does this mean I only need to include the main sha204_library and not include the 'return_codes' portion separately? If I use the main library the code compiles without issues, if I'm trying to include the 'return_codes' portion it gets flagged.
      Id appreciate any thoughts.
      Dave

      rozpruwaczR Offline
      rozpruwaczR Offline
      rozpruwacz
      wrote on last edited by
      #2

      @dbagioni the sha204_lib_return_codes.h file is in sketch folder so it should be found by the compiler.

      1 Reply Last reply
      1
      • rozpruwaczR Offline
        rozpruwaczR Offline
        rozpruwacz
        wrote on last edited by
        #3

        proof: https://github.com/mysensors/MySensors/tree/development/examples/SecurityPersonalizer
        :)

        1 Reply Last reply
        0
        • DbagioniD Offline
          DbagioniD Offline
          Dbagioni
          wrote on last edited by
          #4

          Thats the example I used.```
          /*

          • The MySensors Arduino library handles the wireless radio link and protocol
          • between your home built sensors/actuators and HA controller of choice.
          • The sensors forms a self healing radio network with optional repeaters. Each
          • repeater and gateway builds a routing tables in EEPROM which keeps track of the
          • network topology allowing messages to be routed to nodes.
          • Created by Henrik Ekblad henrik.ekblad@mysensors.org
          • Copyright (C) 2013-2015 Sensnology AB
          • Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
          • Documentation: http://www.mysensors.org
          • Support Forum: http://forum.mysensors.org
          • This program is free software; you can redistribute it and/or
          • modify it under the terms of the GNU General Public License
          • version 2 as published by the Free Software Foundation.

          /
          #include <sha204_library.h>
          #include <sha204_lib_return_codes.h>
          #define MY_CORE_ONLY
          #include <MySensors.h>
          /
          *********************************** User defined key data ***************************************/

          But Im still getting this error.

          
           #include "sha204_includes/sha204_lib_return_codes.h"
          
                                                               ^
          
          compilation terminated.
          
          exit status 1
          Error compiling for board Arduino/Genuino Uno.
          

          Im at a total loss. The return_codes is located in a separate folder in the libraries file - SRC (which has the main sha204_library.h file), under the SRC folder is a folder titled "includes" which has the 'return_codes.h' file. Any attempt to place it in the #include decleration results in this error.
          Dave

          1 Reply Last reply
          0
          • rozpruwaczR Offline
            rozpruwaczR Offline
            rozpruwacz
            wrote on last edited by
            #5

            @dbagioni said in sha204 library questions:

            return_codes is located in a sepa

            I don't understand what You trying to do, but why do You want to "place it in the #include decleration" ?

            1 Reply Last reply
            0
            • dbagioni77D Offline
              dbagioni77D Offline
              dbagioni77
              wrote on last edited by
              #6

              I really dont want to do anything special per se....im just trying to find out if the newer library includes the "return_codes.h" as part of it, do i need a seperate #include statement?

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              16

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              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