Skip to content

Commit

Permalink
Release the iot-coap 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 14, 2014
1 parent 8bc601c commit 1ec21ca
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -2,4 +2,4 @@ node_modules/*
server/node_modules/*
.idea/*
npm-debug.log
newrelic.js
newrelic.js
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified iot.db
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/query_helper.js → lib/coap_query_helper.js
@@ -1,5 +1,5 @@
var DBHelper = require('./db_helper.js');
var returnResult = require('./result_helper.js');
var returnResult = require('./coap_result_helper.js');

function query_helper() {
'use strict';
Expand Down
3 changes: 1 addition & 2 deletions lib/request_handler.js → lib/coap_request_handler.js
@@ -1,4 +1,4 @@
var qh = require('./query_helper.js');
var qh = require('./coap_query_helper.js');
var _ = require("underscore");

function request_helper() {
Expand Down Expand Up @@ -54,7 +54,6 @@ request_helper.errorRequest = function (res) {
}));
};


request_helper.urlErrorRequest = function (res) {
'use strict';
res.end(JSON.stringify({
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/coap_server.js
Expand Up @@ -22,7 +22,7 @@ iotcoap.run = function () {
});
}

var request_handler = require('./request_handler.js');
var request_handler = require('./coap_request_handler.js');
coapserver.on('request', function (req, res) {
if (url_sanity_check(req.url) === false) {
request_handler.urlErrorRequest(res);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "iot-coap",
"version": "0.1.20",
"version": "0.2.0",
"description": "Mini IoT CoAP Version",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions test/coap_function_test.js
Expand Up @@ -3,6 +3,7 @@ const coap = require('coap')
,bl = require('bl');

describe('coap function test', function () {

before(function() {

});
Expand Down
2 changes: 1 addition & 1 deletion test/result_helper_test.js
@@ -1,4 +1,4 @@
var resultReturn = require('../lib/result_helper.js');
var resultReturn = require('../lib/coap_result_helper.js');

describe('query data status code test', function() {

Expand Down

0 comments on commit 1ec21ca

Please sign in to comment.