Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.07 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.07 KB

energy-swift

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)

screenshot

Building using xcode 14

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

Integration of the libraries

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".

framworks-512x172