Hi Robert,
Thanks for you support!
Just one question, please.
What is the benefit of the Property functionality?
Best regards
Frank
New Bosch BME280 temperature, humidity, pressure sensor library
- Hasenradball
- Posts: 15
- Joined: Tue May 21, 2019 12:52 pm
- Location: Germany
- Contact:
Re: New Bosch BME280 temperature, humidity, pressure sensor library
That's up to you. Properties can be use to get, set and delete data of a class. For getting, there is usually almost no difference to using a function call notation. The only difference in the actual case would be writing 'bme.values()' instead of 'bme.values'. setting or deleting makes a difference, because a setter would also be transformed into a function call, than can do rather complex operations, while still looking like a simple assignment by the callee. Still that could be done with a class method call, and you may call that 'syntactic sugar'.What is the benefit of the Property functionality?
For the actual BME280 the benefit of using properties is minor.
- Hasenradball
- Posts: 15
- Joined: Tue May 21, 2019 12:52 pm
- Location: Germany
- Contact:
Re: New Bosch BME280 temperature, humidity, pressure sensor library
I tested yesterday the property call and I got an error.
Maybe my call was wrong.
But I will check it angain today.
Thanks a lot....
Maybe my call was wrong.
But I will check it angain today.
Thanks a lot....