macOS & iOS Swift (5.x) App using MQTT to show data from some of my energy sources (first approach)
Data sources:
- Growatt inverter
- go-eCharger Homefix
- OBIS / SML reader (esp8266 based)
Install using Carthage (https://github.com/Carthage/Carthage) by adding the following lines to your Cartfile
:
github "emqx/CocoaMQTT" "master"
github "SwiftyJSON/SwiftyJSON" ~> 4.0
Then, run the following command:
carthage update --platform macOS,iOS --use-xcframeworks
or
carthage update --use-xcframeworks
On your application targets “General” settings tab, in the "Frameworks, Libraries, and Embedded content" section, drag and drop LibraryName.xcframework, from the Carthage/Build folder on disk. Then select "Embed & Sign".