Comments (3)
Oh, the successful connections were made using this: https://github.com/eclipse/californium.tools/tree/master/cf-browser
from go-coap.
I created branch https://github.com/go-ocf/go-coap/tree/californium where I added tests for californium: californium_test.go.
For TCP:
go-coap has disabled blockwise by default for tcp connection - to enable it, you need to set client.BlockWiseTransfer
to true
.
example code:
californiumServer = "californium.eclipse.org:5683"
enable := true
client := &Client{Net: "tcp", BlockWiseTransfer: &enable}`
co, err := client.Dial(californiumServer)
if err != nil {
t.Fatalf("Error dialing: %v", err)
}
resp, err := co.Get("")
if err != nil {
t.Fatalf("Cannot post exchange")
}
For UDP:
On Windows/Linux it is works. I dont' have MacOS to solve issue - it seems problem is in udp.go:WriteToSessionUDP
-> If you replace line 62 in udp.go:
n, _, err := conn.WriteMsgUDP(b, correctSource(session.context), nil)
by
return conn.WriteToUDP(b, session.raddr)
is it helps you?
from go-coap.
I will close this issue. If you have still problem reopen it. Thx
from go-coap.
Related Issues (20)
- how do u do cookie sessions or cookies data sending in coap? HOT 3
- How to get IdentityHint for request HOT 2
- TCP doesn't work HOT 2
- Bidirectional examples missing HOT 2
- mux.Router can't handle root path or no path ("/") HOT 3
- Move from `pion/udp` to `pion/transport` HOT 3
- Support for Middlewares in mux Router HOT 5
- Consume `pion/dtls` connection ID support HOT 1
- Support serializing and deserializing a UDP DTLS connection HOT 2
- Implement Support for Separate Messages in Server HOT 1
- Server response with ACK to Empty CON (CoAP Ping) HOT 1
- /examples/dtls/cid/server crashes if client has wrong PSK HOT 1
- udp/server_test.go fails if first non-loopback interface is not running HOT 2
- Media type strings do not match IANA registry HOT 5
- Mux provides user with internal map HOT 1
- Ping (CON Empty Message) Notifications HOT 1
- Support for sending messages without token
- Blockwise requests should be correlated based on message options HOT 4
- ListenAndServeWithOptions doesn't correctly start UDP server HOT 1
- Pion pkg/net dependency error HOT 3
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 go-coap.