You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ThingsBoard PE users may get access to additional services using TbContext.getPeContext() method.
However, if property <thingsboard.version></thingsboard.version> inside custom rule engine node's pom.xml is not *PE, the PE context is (obviously) not available.
I had a problem when using ThingsBoard 3.2.1PE, which was not listed in the repository, so I had to type the version as <thingsboard.version>3.2.1</thingsboard.version>, which didn't contain the TbContext.getPeContext() method.
I've changed to the next available version (<thingsboard.version>3.2.2PE</thingsboard.version>), and it worked.
I know this problem is not related to documentation (but is rather a problem with the repo). However, it may save developers' time if they are alerted.
Proposed Solution:
Inside docs explicitly write that developers must use *PE version if they want to use TbContext.getPeContext() method. In case of trouble (ex., if no PE edition is found for a specified version in the repo), they may change it to an older/newer *PE version.
This is a...
Problem:
In the Rule Node Development Guide inside subchapter Using ThingsBoard services is written:
However, if property
<thingsboard.version></thingsboard.version>
inside custom rule engine node'spom.xml
is not*PE
, the PE context is (obviously) not available.I had a problem when using ThingsBoard 3.2.1PE, which was not listed in the repository, so I had to type the version as
<thingsboard.version>3.2.1</thingsboard.version>
, which didn't contain theTbContext.getPeContext()
method.I've changed to the next available version (
<thingsboard.version>3.2.2PE</thingsboard.version>
), and it worked.I know this problem is not related to documentation (but is rather a problem with the repo). However, it may save developers' time if they are alerted.
Proposed Solution:
Inside docs explicitly write that developers must use
*PE
version if they want to useTbContext.getPeContext()
method. In case of trouble (ex., if no PE edition is found for a specified version in the repo), they may change it to an older/newer*PE
version.Page to Update:
https://thingsboard.io/docs/pe/user-guide/contribution/rule-node-development/
The text was updated successfully, but these errors were encountered: