15,797,801 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ramen79 (Top 17 by date)
ramen79
3-Sep-19 6:34am
View
correct is>>
bus.write_i2c_block_data(i2c_address, i2c_cmd,byteDate)
ramen79
3-Sep-19 6:33am
View
Hi!
thanks.
meantime I have done it with "," separated string.
like:
byteData = ConvertStringToBytes("250,5000,400,1,430")
bus.write_i2c_block_data(byteDate)
thanks
ramen79
11-Mar-19 5:38am
View
Oops!
thanks. It is working now.
ramen79
24-Feb-19 15:33pm
View
Thanks Richard for your reply.
I have tried with ajax, it is polling latlon from mysql every 5 secs as i set(I have checked with alert), but no luck yet ,the map layer/marker position not getting updated..
Below is the code I have tried...
function fetchdata(){
$.ajax({
url: 'getLatLong.php',
type: 'post',
dataType: 'json',
success: function(response){
// Perform operation on the return value
// alert(response);
var latlon = response
//alert(latlon)
//setMap(latlon)
var myMap = setTimeout(setMap,3000)
function setMap(){
var map = new L.map('map' , {center: latlon,
zoom: 14})
// Creating a Layer object
var layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')
// Adding layer to the map
map.addLayer(layer)
var marker = L.marker(latlon).addTo(map)
layer.bindPopup('LatLng: ' + layer.getLatLng()).openPopup()
}
},
complete:function(data){
setTimeout(fetchdata,5000);
}
});
}
$(document).ready(function(){
setInterval(fetchdata,5000);
ramen79
28-Jan-18 9:14am
View
I have tried, it only sendsms to the 1st number.
ramen79
20-Apr-17 8:04am
View
I have tested in the command prompt, it was throwing error: file in the directory not found==>> error was for config.php then I have mentioned the right path for config.php and assigned value for val1 and val2, now when I run the same SET of AT commands it is giving the same 408 time out error but also inserting the assigned values in MySQL database table. But when I tried to pass value from GPRS AT command nothing inserted only throwing error!!!
Somehow I am not able to figure out the problem...
Thanks....
ramen79
19-Apr-17 11:10am
View
Sorry, it is Mysql_select_db("dbname",$con);
Next I will try in windows command prompt and tell you the result..
Thanks....
ramen79
18-Apr-17 13:03pm
View
$con is the variable actually holding the MySQL connecting credential
with Mysql_db_connect("dbname",$con);
ramen79
18-Apr-17 11:34am
View
I am sorry not to mention that I have a config.php included within gprs_data.php which is having the MySQL connection credential.
ramen79
31-Mar-17 4:49am
View
Thanks for your prompt response...
I am new in this type of program, can you please mention where to change in my code..
It will be a great help for me.
thanks in advance..
ramen79
29-Mar-17 16:00pm
View
I have solved the problem..
re-written <=count($chnos).....
thanks...
ramen79
29-Mar-17 15:59pm
View
I have solved the problem..
re-write <= count($chnos) ..
thanks...
ramen79
29-Mar-17 15:43pm
View
I have re-write echo $chstatus[$i];... now it is showing the array output, but showing Notice: Undefine offset:28 in chstat.php...
ramen79
13-Mar-17 2:49am
View
i have tried with the below, unable to get data
Regs = ModbusClient.ReadHoldingRegisters(30001, 5)
or
Regs = ModbusClient.ReadHoldingRegisters(3, 5)
ramen79
11-Mar-16 13:40pm
View
thankz for you comment...unfortunately it did not worked with same error,however if the datetime col in csv file is manually formatted to yyyy-mm-dd hh:mm:ss and the code is written as
cmd.CommandText = "LOAD DATA INFILE " + path + " INTO TABLE table1 FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' IGNORE 1 LINES(dat1,dat2,dat3,timedtamp)"
it works fine, but it does not sever my purpose...
ramen79
24-Nov-15 6:31am
View
thnkz for your answer, i have tried coding like below but it did not worked.
function deleteRow(dataTable) {
try {
var table = document.getElementById(dataTable);
var rowCount = table.rows.length;
var sumOfDeletedRpws = 20;
for (var i=0; i < rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if (null != chkbox && true == chkbox.checked) {
// The line below is not syntactically correct, but you get the idea
sumOfDeletedRpws += row[10];
alert(sumOfDeletedRpws);
table.deleteRow(i);
rowCount--;
i--;
}
}
// Add a line similar to this to subtract the values in the deleted rows
var subtot = document.getElementById("subtotal").value;
var nstot = subtot - sumOfDeletedRpws;
document.getElementById("subtotal").innerHTML = nstot;
}
catch(e) {
alert(e);
}
}
ramen79
26-Feb-12 1:01am
View
thanks for the code, i shall try and come back
regards
ramen
Show More