I've found a sketch which uses the Ethernet.h library to write data to a service bus.
code excerpt:
EthernetClient client;
connected = client.connect(host, 10100);
if (connected) {
client.write(deviceId, sizeof(deviceId));
I'm using an Arduino UNO with CC3000 and no onboard Ethernet. Can I replace the references to EthernetClient to an Adafruit_CC3300 call?
E.g.:
Adafruit_CC3000_Client client = cc3000.connectTCP(ip, 10100);
if (connected) {
client.write(deviceId, sizeof(deviceId));
Or does the Adafruit client not understand ".write"?
Does CC3000 accept "client.write"
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Does CC3000 accept "client.write"
The client has a write method
Please be positive and constructive with your questions and comments.