InfluxDB 2.0 Token size

In case this is helpful to anyone:
The default token from InfluxDB 2.0 is 88 characters in length. This means that leaving a declaration of
sToken : STRING := ‘myTokenFromInfluxWhichIsActually88CharactersLong’;
for use in the WagoAppInfluxDb library may not work.

To correct this, simply force the size of the String variable to be longer:
sToken : STRING(100) := ‘myTokenFromInfluxWhichIsActually88CharactersLong’;

2 Likes