sps30
sps30 copied to clipboard
'ERR_DATALENGTH' 'ERR_OK' not declared
Hello Paul, I've been trying to get the SPS30 to read PM values using an Heltec ESP32 LoRa WiFi board, ive tried i2c and UART, yet am experiencing this issue, which is weird since it was not giving me the error of having things undeclared but rather saying that the sps30 probe was not reading. Any assistance would be helpful thank you.
Hi
I am on a short break returning in 2 days. I will look then. Which example did you use?
Regards Paul
Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden
From: MetalLocket0 @.> Sent: Wednesday, June 29, 2022 3:12:14 PM To: paulvha/sps30 @.> Cc: Subscribed @.***> Subject: [paulvha/sps30] 'ERR_DATALENGTH' 'ERR_OK' not declared (Issue #29)
Hello Paul, I've been trying to get the SPS30 to read PM values using an Heltec ESP32 LoRa WiFi board, ive tried i2c and UART, yet am experiencing this issue, which is weird since it was not giving me the error of having things undeclared but rather saying that the sps30 probe was not reading. Any assistance would be helpful thank you.
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F29&data=05%7C01%7C%7C5e4c1ed95dc94d44704b08da59d0fc5b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637921051370725983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1XiJjc40y7Fd23kNH8GfuFrgolhep%2BhKe0NYU7Itr30%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPE5B2BAVDFHJCRJCW3VRRDS5ANCNFSM52FWHNXQ&data=05%7C01%7C%7C5e4c1ed95dc94d44704b08da59d0fc5b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637921051370725983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=vNcoU%2FRTD9QrP68iR9wyd3chk%2FFf7YcRn4Lq7tNMqGE%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hello,
I was using the plotter example. Thank you again.
it looks to me that you have a combination of the 1.4.14 and earlier versions of the driver. In 1.4.14 I have changed the definition of the error message. E.g. from ERR_DATALENGTH to SPS30_ERR_DATALENGTH. Can you reinstall and check that?
well i did all of that and it seems to not show that error anymore but now i have 'SP30_COMMS' was not declared as an error. I put the protocol as I2C and am using the same example.
does line 162 of the sketch say :
#define SP30_COMMS I2C_COMMS
regards, Paul
Thank you paul it now works! It is giving me "Due to I2C buffersize only the SPS30 MASS concentration is available !!!" anyway to get the other readings?
Thank you, Leal
Good to hear.. for the i2c buffer.. in de sps30.odt is a details description what you can do about it. The file can be read with nearly any wordprocessor..
Regards Paul
Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden
From: MetalLocket0 @.> Sent: Monday, July 18, 2022 3:02:24 PM To: paulvha/sps30 @.> Cc: paulvha @.>; Comment @.> Subject: Re: [paulvha/sps30] 'ERR_DATALENGTH' 'ERR_OK' not declared (Issue #29)
Thank you paul it now works! It is giving me "Due to I2C buffersize only the SPS30 MASS concentration is available !!!" anyway to get the other readings?
Thank you, Leal
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F29%23issuecomment-1187362284&data=05%7C01%7C%7Ca337443a53b1484ce7e608da68bdc2d1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637937461465535041%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mfVBThvkjpxfKG0ixwu%2BPGfoBlhJC0B8JrGkAcVfGkg%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPHUJOHIERTVIM2HALLVUVIWBANCNFSM52FWHNXQ&data=05%7C01%7C%7Ca337443a53b1484ce7e608da68bdc2d1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637937461465535041%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Xtx0I0QzwGPK8qu%2B%2FjGgTRFq4TVzDRCQXZc%2BTaauejg%3D&reserved=0. You are receiving this because you commented.Message ID: @.***>
solved