diff options
Diffstat (limited to 'src/AccessoryCards/LoraCard.cpp')
-rw-r--r-- | src/AccessoryCards/LoraCard.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/AccessoryCards/LoraCard.cpp b/src/AccessoryCards/LoraCard.cpp index ba50aa7..66047f3 100644 --- a/src/AccessoryCards/LoraCard.cpp +++ b/src/AccessoryCards/LoraCard.cpp @@ -19,5 +19,10 @@ Device::LoraCard::LoraCard(Device& d, const std::string productId, const std::string port) : AccessoryCard(d) { spiPath = "/dev/spidev0.0"; +} + +void Device::LoraCard::setCapabilities() { device.capabilityList["lora"] = true; + device.accessoryCard.AddMember("spiPath", rapidjson::Value().SetString(spiPath.c_str(), device.accessoryCardsAlloc), device.accessoryCardsAlloc); + device.accessoryCard.AddMember("fpgaVersion", fpgaVersion, device.accessoryCardsAlloc); }
\ No newline at end of file |