@mfalkvidd Thank you for pointing me to those resources, I finally got them working.
@scalz Absolutely awesome work
Here's a full sketch example using the Si7021 Temp/RH sensor:
#define MY_NODE_ID 2
#define MY_DEBUG
#define MY_RADIO_RFM69
#define MY_RFM69_FREQUENCY RFM69_433MHZ
#define MY_IS_RFM69HW
#define MY_RFM69_NETWORKID 100
#include <MySensors.h>
#include <SPI.h>
#include <Wire.h>
#include "Adafruit_Si7021.h"
unsigned long SLEEP_TIME = 1000;
Adafruit_Si7021 sensor = Adafruit_Si7021();
MyMessage msgTemp(1, V_TEMP);
MyMessage msgRh(2, V_HUM);
MyMessage msgRSSI(3,V_VAR5);
float temp;
float rh;
boolean requestACK = false;
int16_t rssiVal
char rssiStr[10];
void setup()
{
delay(100);
sendSketchInfo("Temperature/RH Sensor N2 RFM69", "1.1");
sensor.begin();
present(1, S_TEMP);
present(2, S_HUM);
}
void loop() {
rssiVal = transportGetRSSI();
rh = sensor.readHumidity();
temp = sensor.readTemperature();
snprintf(rssiStr,10,"rssi: %d%",rssiVal);
send(msgTemp.set(temp,2));
send(msgRh.set(rh,2));
send(msgRSSI.set(rssiStr));
sleep(SLEEP_TIME);
}
However, please note that this only works on:
https://github.com/scalz/Mysensors/tree/rfm69_update2
and
http://forum.mycontroller.org/topic/58/download-snapshot-build
Just drop a reply here and I will happily assist you using the above versions until they will be fully commited.