#14 MQTT Host Library VfInit

open
hermsen
None
2024-01-25
2024-01-24
amy123
No

the MQTT Host library, POU/Sparkplug MQTT edge and Host stac/Function Blocks/ Factories/LinkedListWStringFactory/Create, in line 8 of Create has 'Create^.__vfInit();' which is not defined. Should this be 'vfInit()'? And add a declaration of local variable vfInit:INIT?

1 Attachments

Discussion

  • i-campbell

    i-campbell - 2024-01-25

    __vfInit() is correct.

    The errors you see is a bug in the precompiler, if you build it, it will go away.

    You can see yourself, if you create a new project > Library > Standard Library, there is a template for FBFactory that we follow here.

    There's a writeup https://content.helpme-codesys.com/en/LibDevSummary/fb_factory.html

     
    👍
    1
    • amy123 - 2024-01-25

      I see, thank you for the clarification and quick response!

       
  • i-campbell

    i-campbell - 2024-01-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -the MQTT Host library, POU/Sparkplug MQTT edge and Host stac/Function Blocks/ Factories/LinkedListWStringFactory/Create, in line 8 of Create has 'Create^.vfInit();' which is not defined. Should this be 'vfInit()'? And add a declaration of local variable vfInit:INIT?
    +the MQTT Host library, POU/Sparkplug MQTT edge and Host stac/Function Blocks/ Factories/LinkedListWStringFactory/Create, in line 8 of Create has '`Create^.__vfInit();`' which is not defined. Should this be 'vfInit()'? And add a declaration of local variable vfInit:INIT?
    
    • status: open --> pending
     
  • i-campbell

    i-campbell - 2024-01-25
    • status: pending --> closed
     
  • i-campbell

    i-campbell - 2024-01-25
    • status: closed --> open
     

Log in to post a comment.