NubeIO / driver-bacnet

0 stars 2 forks source link

Issue-92: Support for point discovery APIs #101

Closed shomaglasang closed 6 months ago

shomaglasang commented 8 months ago

Point discovery APIs

  1. Discover points (topic: bacnet/cmd/point_discovery) Sample payload
    {"deviceInstance":"5678","mac":"10.104.0.11:47900"}

    Response JSON payload

    {"deviceInstance" : "5678", "mac" : "10.104.0.11:47900", "value" : {"objects" : ["ai-1","ai-2","ao-1","ao-2","av-1","av-2","bi-1","bi-2","bi-3","bi-4","bo-1","bo-2","bv-1","bv-2","msi-1","msi-2","msi-3","msi-4","mso-1","mso-2","mso-3","mso-4","msv-1","msv-2","msv-3","msv-4"], "count" : "26"}}
  2. Get points info (topic: bacnet/cmd/points_info) Sample payload
    {"deviceInstance":"5678","mac":"10.104.0.11:47900", "points" : ["ai-1", "ai-2", "ao-1", "bv-10"]}

    Response JSON payload

    {"deviceInstance" : "5678", "mac" : "10.104.0.11:47900", "value" : {"ai-1" : {"name" : "AI_1_SPARE"},"ai-2" : {"name" : "AI_2_SPARE"},"ao-1" : {"name" : "AO_1_SPARE"},"bv-10" : {"error" : "Unknown object"}}}
shomaglasang commented 6 months ago

Skip merging to master branch. Will create a development branch for testing fixes and enhancements.