Placing the receive function in my Gateway sketch worked. Thanks. For some reason I thought that function would only work for sensor nodes to watch for messages sent from the Gateway.
jwoods
@jwoods
Best posts made by jwoods
-
RE: IncomingMessage function not firing
Latest posts made by jwoods
-
RE: IncomingMessage function not firing
Placing the receive function in my Gateway sketch worked. Thanks. For some reason I thought that function would only work for sensor nodes to watch for messages sent from the Gateway.
-
IncomingMessage function not firing
I have a Serial Gateway running on a Nano v3 that's using the default MySensors Serial Gateway code along with the 2.1 mySensors library. I’m trying to track/monitor incoming messages from my nodes. The only code that has been added to the serial gateway sketch is
void incomingMessage(const MyMessage &message)
{
Serial.println("Inside Incoming Message");
}But, I’m not seeing my “Inside Incoming Message" message in the serial monitor when my nodes communicate with the gateway.
The sketch compiles and uploads to the gateway without error messages
Is there something I need to include in my sketch or config files to make the incomingMessage function work? -
RE: Sensebender Micro - Problem accessing accelerometer via SDA and SCL pins
@tbowmo - Just to close the loop on this one. A few weeks ago I had ordered a few additional Micro's.... they arrived today, uploaded my sketch and got good readings from the accelerometer. Must have been a problem with hw and or I2C circuitry. Thanks again for your assistance.
-
RE: Sensebender Micro - Problem accessing accelerometer via SDA and SCL pins
@tbowmo Correct. Hangs with and without accelerometer connected. No scope, only multimeter.
-
RE: Sensebender Micro - Problem accessing accelerometer via SDA and SCL pins
@tbowmo I’ve complied and uploaded the default sensebender micro sketch. The sketch hangs on the following line of code humiditySensor.begin(); -- actually hangs on Wire.endTransmission(); inside the begin procedure from the SI7021 library.
For my original sketch that accesses the accelerometer… that code also hangs when I call the a readRegister function that is also trying to execute Wire.endTransmission() function.
Could I have inadvertently damaged the sensebender and or the I2C circuitry?
-
RE: Sensebender Micro - Problem accessing accelerometer via SDA and SCL pins
@tbowmo - Thanks for the response. I'm using the mma8452q accelerometer. I'll have to pull some code together to see if I can get a reading from the si7021 while the accelerometer is attached.
-
Sensebender Micro - Problem accessing accelerometer via SDA and SCL pins
Has anyone had any issues using the SDA and SCL pins on the Sensebender Micro.
I have a sketch running on an Arduino Pro Mini ( 3.3v 8 Hz) that accesses a Sparkfun accelerometer via the SDA and SCL pins using a Sparkfun library. I’m able to upload this same sketch to the Sensebender Micro but when I run the sketch the accelerometer fails to initialize.
This same sketch runs perfectly on a Nano v3 and the Pro Mini. I’m trying to get the sketch working on the Sensebender Micro so that I can take advantage of the Micro’s low power consumption since I’m planning to run the Micro on AA batteries.
Thoughts?
Thanks