Dust Sesnsor PMS5003
Dependencies: DustSenzor NetServices ThingSpeakEthernet mbed
Fork of PMS5003 by
Revision 13:5c98f1d10e70, committed 2017-06-13
- Comitter:
- mpuric
- Date:
- Tue Jun 13 19:15:58 2017 +0000
- Parent:
- 12:df83e01db08e
- Child:
- 14:48368d18a793
- Commit message:
- init commit;
Changed in this revision
DustSenzor.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DustSenzor.lib Thu Jun 08 18:28:54 2017 +0000 +++ b/DustSenzor.lib Tue Jun 13 19:15:58 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/mpuric/code/DustSenzor/#f6a93c155525 +https://developer.mbed.org/users/mpuric/code/DustSenzor/#067de0268900
--- a/main.cpp Thu Jun 08 18:28:54 2017 +0000 +++ b/main.cpp Tue Jun 13 19:15:58 2017 +0000 @@ -12,7 +12,7 @@ int main() { ds.stop(); float *ptr; - + float values [6]; ts.connect(); wait(1); while(1){ @@ -23,7 +23,8 @@ while( res == 1){ ptr = ds.read(); for( int i = 0; i < 6; i++) { - ts.setField(*(ptr + i), i+1); + values[i] = *(ptr + i) ; + ts.setField ( values[i]*10000, i+1 ); } ts.putUp(); wait(15);