Skip to content

Commit

Permalink
Feature: cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanesik committed Dec 27, 2022
1 parent 97fae65 commit a4d5d25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions ModSwift.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Pod::Spec.new do |s|
s.name = 'ModSwift'
s.version = '0.0.1'
s.summary = 'Library to easy generate Modbus commands in Swift.'

s.homepage = 'https://github.com/ivanesik/ModSwift'
s.license = 'MIT'
s.author = { 'ivanesik' => 'https://github.com/ivanesik' }
s.source = { :git => 'https://github.com/ivanesik/ModSwift.git', :tag => s.version.to_s }

s.swift_version = '5.0'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '11.0'
s.tvos.deployment_target = '11.0'

s.source_files = 'Sources/ModSwift/**/*'
s.dependency 'CrcSwift'
end
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

[![Swift](https://img.shields.io/badge/Swift->5.0-orange.svg)](https://swift.org)
[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ModSwift.svg?style=flat-square)](https://img.shields.io/cocoapods/v/ModSwift.svg)
[![Xcode](https://img.shields.io/badge/Xcode-14.0-blue.svg)](https://developer.apple.com/xcode)
[![MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT)

---

## Summary

Library to easily generate Modbus commands in Swift.
Library to easy generate Modbus commands in Swift.

## Installation

Expand Down Expand Up @@ -82,6 +83,7 @@ Functions:
- Pemex Modbus
- Enron Modbus
- Slave mode
- Error Codes
- LRC check (for ASCII mode)
- Tests in CI
- Pod lint in CI
Expand Down
1 change: 0 additions & 1 deletion Sources/ModSwift/ModSwift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

///--------------------------------------------------------------------------------------------------
/// TODO: в документации не забыть описать автоинкремент
/// TODO: в документации написать, что это мастер
/// TODO: в документации описать что есть MBAP картинкой (http://cleverhouse.club/software/dispatch/chto-takoe-modbus-rtu-i-modbus-tcp.html)//////////////
/// TODO: написать тесты правильности пакетов
///--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit a4d5d25

Please sign in to comment.