Comments (2)
Hi @lygialiem. This library is connection agnostic, hence it doesn't care about the way the bytes are incoming, all it needs is a pair of NSInputStream
and NSOutputStream
when you create the adapter like that:
LTOBD2AdapterELM327* adapter = [LTOBD2AdapterELM327 adapterWithInputStream:inputStream outputStream:outputStream];
That said, if you're talking to an OBD2 WiFi device, you can obtain a pair of streams using the Foundation's NSStream
API, e.g. like that:
NSInputStream* input = nil;
NSOutputStream* output = nil;
[NSStream getStreamstoHost:[NSHost hostWithName:@"192.168.1.10"] port:35000 inputStream:&input outputStream:&output];
and then feed input
and output
into the aforementioned constructor.
Hope that helps.
from ltsupportautomotive.
Hi Mr mickeyl
Thank you for your well response. I've already make it work. I close topic now.
from ltsupportautomotive.
Related Issues (20)
- Doubt about how to implement new CAN Codes HOT 1
- Reading DTCs HOT 2
- Not able to read all DTC if vehicle having multiple ECU HOT 1
- Swift support for LTSupportAutomotive 1.1 HOT 3
- Connection Issue HOT 1
- UDS Support (cancelled) HOT 4
- Transmitting DTCs using Swift HOT 1
- Is it possible to get PID commands return data faster? HOT 15
- Adapter State Initializing HOT 1
- LELink Bluetooth Low Energy - stuck on "OBD2AdapterStateInitializing" state HOT 4
- Crash when adapter state changed HOT 2
- After Disconnect it didnt connect stuck on "Initializing" state.
- Any ideas about simulating DTC functions?
- got "Invalid or short line '83' found"?
- How can I get Trouble Code and Pending Code like android in iOS Swift ?
- Documentation refers to Swift-UDS which cannot be found on GitHub HOT 1
- Bug in LTOBD2ProtocolISO15765_4 HOT 1
- Crash on XCode 14.3, init is unavailable!
- How to read odometer from OBD2? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltsupportautomotive.