Program error for arduino

program error from this line :
client.setPort("443");

error:
invalid conversion fro const char......

Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE

Please post your full sketch and the full error message using code tags for both

I seriously doubt that function is expecting a string literal as it’s parameter.

client.setPort( ??? );

Check out the documentation.

When I remove the inverted commas from this "443" to just 443 in brackets the error is gone
Is it fine?

Read the documentation about data types and function parameters.

If we just say YES or NO,you haven’t learned a thing.

It compiles but whether it does what you want is another matter

Which port do you want to use ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.