Does CC3000 accept "client.write"

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Akubra
 
Posts: 7
Joined: Wed Sep 03, 2014 6:45 am

Does CC3000 accept "client.write"

Post by Akubra »

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

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Does CC3000 accept "client.write"

Post by adafruit_support_rick »

The client has a write method

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”