CC3000 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

CC3000 write

Post by Akubra »

I'm using the Adafruit_CC3000.h library to connect my wireless device to a TCP/IP listener

In my sketch I'm connecting to a listener using:
client = cc3000.connectTCP(ip, port)

One connection is established, I want to write a string to it but apparently
client.write("my test string")
is not accepted.

Any ideas on how to send a string?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: CC3000 write

Post by Franklin97355 »

but apparently
client.write("my test string")
is not accepted.
By which side and what indications do you get?

User avatar
Akubra
 
Posts: 7
Joined: Wed Sep 03, 2014 6:45 am

Re: CC3000 write

Post by Akubra »

Had to change the code on the receiving end (and use client.print instead of client.write)

It's working now. Thanks.

A.

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

Return to “Other Arduino products from Adafruit”