XBee
XBee copied to clipboard
ForceSample() does not cause SampleReceived event to fire
Is there a way to get the state of the digital input pins on startup? I tried manually setting IR to 1, to 100, changing the value of IC, but nothing works. node.ForceSamples() does not seem to have any effect.
What should I set up for periodic sampling? Sorry, I guess this inadvertently became two questions.
ForceSampleAsync should fire the SampleReceived event and you can use SetSampleRateAsync to set the sample rate. I can't think offhand of any way to synchronously read the pin values.
Then perhaps we should treat this incident as "ForceSamples() does not cause samples received event to fire.
On Mar 6, 2018 8:20 PM, "Jeff Haynes" [email protected] wrote:
ForceSampleAsync should fire the SampleReceived event and you can use SetSampleRateAsync to set the sample rate. I can't think offhand of any way to synchronously read the pin values.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jefffhaynes/XBee/issues/46#issuecomment-370988747, or mute the thread https://github.com/notifications/unsubscribe-auth/AiHY1B5mXAbrritNjdChg2a5eNiAED_Aks5tbzXWgaJpZM4Sd0rV .
Hm, ok I’ll take a look
— If you want to build a ship, don't drum up people to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea.
Antoine de Saint-Exupery
From: PaulHeitkemper [email protected] Sent: Tuesday, March 6, 2018 8:44:35 PM To: jefffhaynes/XBee Cc: Jeff Haynes; Comment Subject: Re: [jefffhaynes/XBee] How to determine initial Input state? (#46)
Then perhaps we should treat this incident as "ForceSamples() does not cause samples received event to fire. X
On Mar 6, 2018 8:20 PM, "Jeff Haynes" [email protected] wrote:
ForceSampleAsync should fire the SampleReceived event and you can use SetSampleRateAsync to set the sample rate. I can't think offhand of any way to synchronously read the pin values.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jefffhaynes/XBee/issues/46#issuecomment-370988747, or mute the thread https://github.com/notifications/unsubscribe-auth/AiHY1B5mXAbrritNjdChg2a5eNiAED_Aks5tbzXWgaJpZM4Sd0rV .
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/jefffhaynes/XBee/issues/46#issuecomment-370993119, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSKR62l9fdEl35tq1cgNlX8ZRRHHzwfks5tbzuDgaJpZM4Sd0rV.
Title changed to better reflect problem description.
Do you know if you were trying this with an end device or a coordinator? I have a S2C here that I can't get to send a sample locally, even with the X-CTU...
The local device was a XBee PRO 900HP 200K set as Standard Router (CE=0). The remote device I was trying to send the ForceSample() command to was the same type device set as Non-Routing Module (CE=2)