Simple Custom Cloud Python Example

Just can’t get this to work after many hours researching and experimenting. Simply trying to get message to php program on my website but with no success. The php program is never executed and the connection is terminated.
Any help greatly appreciated.

Simple case python program:

from Hologram.CustomCloud import CustomCloud
ccloud = CustomCloud(None, send_host=‘ibrewery.com/xxx/yyy.php’, send_port=80, network=‘cellular’)
print “version and type=”,ccloud.version ,ccloud.network_type
result1 = ccloud.network.connect()
print “result1=”,result1
print 'first CONNECTION STATUS: ’ + str(ccloud.network.getConnectionStatus())
resp = ccloud.sendMessage(“abc”)
print “resp=”,resp
print 'second CONNECTION STATUS: ’ + str(ccloud.network.getConnectionStatus())

Results:
version and type= 0.8.2 Cellular
result1= True
first CONNECTION STATUS: 1
resp=
second CONNECTION STATUS: 0

php program:

<?php error_log("yyy"); echo "ok"; return; ?>

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